Skip to content

Commit 455aa4e

Browse files
authored
chore: update github actions
Closes: #656, #628 Signed-off-by: Tomás Migone <[email protected]>
1 parent 07c0790 commit 455aa4e

File tree

3 files changed

+39
-30
lines changed

3 files changed

+39
-30
lines changed

.github/workflows/npmtest.yml renamed to .github/workflows/ci.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Node.js CI
1+
name: Run CI tests
22

33
on:
44
push:
@@ -11,18 +11,16 @@ jobs:
1111

1212
strategy:
1313
matrix:
14-
node-version: [14.x]
14+
node-version: [16.x]
1515

1616
steps:
17-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v3
1818
- name: Use Node.js ${{ matrix.node-version }}
19-
uses: actions/setup-node@v1
19+
uses: actions/setup-node@v3
2020
with:
2121
node-version: ${{ matrix.node-version }}
2222
- name: Install packages
2323
run: yarn install --non-interactive --frozen-lockfile
24-
env:
25-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
2624
- name: Run tests
2725
run: yarn test:coverage
2826
- name: Upload coverage report

.github/workflows/e2e.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Run E2E tests
2+
3+
on:
4+
push:
5+
branches: [dev]
6+
pull_request: {}
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
matrix:
14+
node-version: [16.x]
15+
16+
steps:
17+
- uses: actions/checkout@v3
18+
- name: Use Node.js ${{ matrix.node-version }}
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
- name: Install packages
23+
run: yarn install --non-interactive --frozen-lockfile
24+
- name: Run e2e tests
25+
run: ADDRESS_BOOK=addresses.json yarn test:e2e

.github/workflows/npmpublish.yml

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,37 +11,23 @@ jobs:
1111
build:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
15-
- uses: actions/setup-node@v1
14+
- uses: actions/checkout@v3
15+
- uses: actions/setup-node@v3
1616
with:
17-
node-version: 12
18-
- run: npm ci
19-
- run: npm test
17+
node-version: 16
18+
- run: yarn install --non-interactive --frozen-lockfile
19+
- run: yarn test
2020

2121
publish-npm:
2222
needs: build
2323
runs-on: ubuntu-latest
2424
steps:
2525
- uses: actions/checkout@v2
26-
- uses: actions/setup-node@v1
26+
- uses: actions/setup-node@v3
2727
with:
28-
node-version: 12
28+
node-version: 16
2929
registry-url: https://registry.npmjs.org/
30-
- run: npm ci
31-
- run: npm publish --access=restricted
32-
env:
33-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
34-
35-
publish-gpr:
36-
needs: build
37-
runs-on: ubuntu-latest
38-
steps:
39-
- uses: actions/checkout@v2
40-
- uses: actions/setup-node@v1
41-
with:
42-
node-version: 12
43-
registry-url: https://npm.pkg.github.com/
44-
- run: npm ci
45-
- run: npm publish --access=restricted
30+
- run: yarn install --non-interactive --frozen-lockfile
31+
- run: npm publish --access=public
4632
env:
47-
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
33+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)