Skip to content

Commit 7684a5c

Browse files
committed
Update GitHub Actions workflow to use Ubuntu 22.04 and Node.js 18; upgrade cache action to v3 and change npm install command.
1 parent cad8257 commit 7684a5c

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

.github/workflows/deployment.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,22 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
os: [ubuntu-20.04]
21-
# os: [ubuntu-18.04, ubuntu-20.04]
20+
os: [ubuntu-22.04]
2221
runs-on: ${{ matrix.os }}
2322
steps:
2423
- uses: actions/checkout@v2
2524
- uses: actions/setup-node@v1
2625
with:
27-
node-version: 14
26+
node-version: 18
2827
- uses: microsoft/playwright-github-action@v1
29-
- uses: actions/cache@v1
28+
- uses: actions/cache@v3
3029
with:
3130
path: ~/.npm
3231
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
3332
restore-keys: |
3433
${{ runner.os }}-node-
3534
- name: Install dependencies
36-
run: npm ci
35+
run: npm install
3736
- name: Run tests
3837
run: npm test
3938
test_win:
@@ -43,22 +42,22 @@ jobs:
4342
- uses: actions/checkout@v2
4443
- uses: actions/setup-node@v1
4544
with:
46-
node-version: 14
45+
node-version: 18
4746
- uses: microsoft/playwright-github-action@v1
48-
- uses: actions/cache@v1
47+
- uses: actions/cache@v3
4948
with:
5049
path: ~/.npm
5150
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
5251
restore-keys: |
5352
${{ runner.os }}-node-
5453
- name: Install dependencies
55-
run: npm ci
54+
run: npm install
5655
- name: Run tests
5756
run: npm test
5857
tag:
5958
name: "Publishing release"
6059
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
61-
needs:
60+
needs:
6261
- test_linux
6362
- test_win
6463
runs-on: ubuntu-latest
@@ -69,9 +68,9 @@ jobs:
6968
fetch-depth: 0
7069
- uses: actions/setup-node@v2
7170
with:
72-
node-version: '14.x'
71+
node-version: '18.x'
7372
registry-url: 'https://registry.npmjs.org'
74-
- uses: actions/cache@v1
73+
- uses: actions/cache@v3
7574
with:
7675
path: ~/.npm
7776
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
@@ -98,4 +97,4 @@ jobs:
9897
prerelease: false
9998
- run: npm publish --access public
10099
env:
101-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
100+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)