Skip to content

Commit 5bfe4a2

Browse files
committed
update ci
1 parent 8151f13 commit 5bfe4a2

File tree

3 files changed

+86
-86
lines changed

3 files changed

+86
-86
lines changed

.github/workflows/npm-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
with:
1414
node-version: '12.x'
1515
registry-url: https://registry.npmjs.org/
16-
- run: npm ci
16+
- run: npm install
1717
- run: npm run test-fast
1818
- run: npm run build
1919
- run: npm publish --access public

.github/workflows/test.yml

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
1-
name: test
2-
3-
# On every pull request, but only on push to master
4-
on:
5-
push:
6-
branches:
7-
- master
8-
pull_request:
9-
10-
jobs:
11-
test-node:
12-
runs-on: ubuntu-latest
13-
14-
env:
15-
GoongAccessToken: ${{ secrets.GOONG_MAPTILES_KEY_CI }}
16-
17-
steps:
18-
- uses: actions/[email protected]
19-
20-
- name: Use Node.js
21-
uses: actions/setup-node@v1
22-
with:
23-
node-version: '12.x'
24-
25-
- name: Install dependencies
26-
run: |
27-
yarn bootstrap
28-
29-
- name: Run tests
30-
run: |
31-
yarn test ci
32-
33-
- name: Coveralls
34-
uses: coverallsapp/github-action@master
35-
with:
36-
github-token: ${{ secrets.GITHUB_TOKEN }}
1+
# name: test
2+
3+
# # On every pull request, but only on push to master
4+
# on:
5+
# push:
6+
# branches:
7+
# - master
8+
# pull_request:
9+
10+
# jobs:
11+
# test-node:
12+
# runs-on: ubuntu-latest
13+
14+
# env:
15+
# GoongAccessToken: ${{ secrets.GOONG_MAPTILES_KEY_CI }}
16+
17+
# steps:
18+
# - uses: actions/[email protected]
19+
20+
# - name: Use Node.js
21+
# uses: actions/setup-node@v1
22+
# with:
23+
# node-version: '12.x'
24+
25+
# - name: Install dependencies
26+
# run: |
27+
# yarn bootstrap
28+
29+
# - name: Run tests
30+
# run: |
31+
# yarn test ci
32+
33+
# - name: Coveralls
34+
# uses: coverallsapp/github-action@master
35+
# with:
36+
# github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/website.yml

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,49 @@
1-
name: website
2-
3-
on:
4-
push:
5-
branches:
6-
- '*-release'
7-
8-
jobs:
9-
publish-website:
10-
runs-on: ubuntu-latest
11-
12-
if: github.repository_owner == 'goong-io'
13-
14-
env:
15-
GoongAccessToken: ${{ secrets.GOONG_MAPTILES_KEY_CI }}
16-
17-
steps:
18-
- uses: actions/[email protected]
19-
20-
- name: Use Node.js
21-
uses: actions/setup-node@v1
22-
with:
23-
node-version: '12.x'
24-
25-
- name: Get version
26-
id: get-version
27-
run: LATEST=$(npm show @goongmaps/goong-map-react version | grep -o -E "^[0-9]+\.[0-9]+") && echo "::set-output name=latest::/${LATEST}-release"
28-
29-
- name: Check version
30-
if: ${{ !endsWith(github.ref, steps.get-version.outputs.latest) }}
31-
run: |
32-
echo "Website is only published from the latest release branch"
33-
34-
- name: Build website
35-
if: ${{ endsWith(github.ref, steps.get-version.outputs.latest) }}
36-
run: |
37-
yarn bootstrap
38-
cd website
39-
yarn
40-
yarn build
41-
42-
- name: Deploy
43-
if: ${{ endsWith(github.ref, steps.get-version.outputs.latest) }}
44-
uses: JamesIves/[email protected]
45-
with:
46-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47-
BRANCH: gh-pages
48-
FOLDER: website/public
49-
CLEAN: true
1+
# name: website
2+
3+
# on:
4+
# push:
5+
# branches:
6+
# - '*-release'
7+
8+
# jobs:
9+
# publish-website:
10+
# runs-on: ubuntu-latest
11+
12+
# if: github.repository_owner == 'goong-io'
13+
14+
# env:
15+
# GoongAccessToken: ${{ secrets.GOONG_MAPTILES_KEY_CI }}
16+
17+
# steps:
18+
# - uses: actions/[email protected]
19+
20+
# - name: Use Node.js
21+
# uses: actions/setup-node@v1
22+
# with:
23+
# node-version: '12.x'
24+
25+
# - name: Get version
26+
# id: get-version
27+
# run: LATEST=$(npm show @goongmaps/goong-map-react version | grep -o -E "^[0-9]+\.[0-9]+") && echo "::set-output name=latest::/${LATEST}-release"
28+
29+
# - name: Check version
30+
# if: ${{ !endsWith(github.ref, steps.get-version.outputs.latest) }}
31+
# run: |
32+
# echo "Website is only published from the latest release branch"
33+
34+
# - name: Build website
35+
# if: ${{ endsWith(github.ref, steps.get-version.outputs.latest) }}
36+
# run: |
37+
# yarn bootstrap
38+
# cd website
39+
# yarn
40+
# yarn build
41+
42+
# - name: Deploy
43+
# if: ${{ endsWith(github.ref, steps.get-version.outputs.latest) }}
44+
# uses: JamesIves/[email protected]
45+
# with:
46+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
# BRANCH: gh-pages
48+
# FOLDER: website/public
49+
# CLEAN: true

0 commit comments

Comments
 (0)