Skip to content

Commit 7659a26

Browse files
committed
update actions
1 parent ab4fe63 commit 7659a26

File tree

2 files changed

+23
-52
lines changed

2 files changed

+23
-52
lines changed

.github/workflows/publish.yml

Lines changed: 13 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,12 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v2
16-
- uses: actions/cache@v2
15+
- uses: actions/checkout@v3
16+
- name: Use Node.js 16
17+
uses: actions/setup-node@v3
1718
with:
18-
path: |
19-
~/.npm
20-
~/.cache/firebase/emulators/
21-
key: ${{ runner.os }}-firestore-${{ hashFiles('**/package-lock.json') }}
22-
restore-keys: |
23-
${{ runner.os }}-firestore-
24-
- name: Use Node.js 14
25-
uses: actions/setup-node@v1
26-
with:
27-
node-version: 14
19+
node-version: 16
20+
cache: npm
2821
- uses: actions/setup-java@v2
2922
with:
3023
distribution: "adopt" # See 'Supported distributions' for available options
@@ -36,16 +29,11 @@ jobs:
3629
needs: test
3730
runs-on: ubuntu-latest
3831
steps:
39-
- uses: actions/checkout@v2
40-
- uses: actions/cache@v2
41-
with:
42-
path: ~/.npm
43-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
44-
restore-keys: |
45-
${{ runner.os }}-node-
46-
- uses: actions/setup-node@v2
32+
- uses: actions/checkout@v3
33+
- uses: actions/setup-node@v3
4734
with:
48-
node-version: 14
35+
node-version: 16
36+
cache: npm
4937
registry-url: https://registry.npmjs.org/
5038
- run: npm ci --prefer-offline
5139
- run: npm publish
@@ -56,16 +44,11 @@ jobs:
5644
needs: test
5745
runs-on: ubuntu-latest
5846
steps:
59-
- uses: actions/checkout@v2
60-
- uses: actions/cache@v2
61-
with:
62-
path: ~/.npm
63-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
64-
restore-keys: |
65-
${{ runner.os }}-node-
66-
- uses: actions/setup-node@v2
47+
- uses: actions/checkout@v3
48+
- uses: actions/setup-node@v3
6749
with:
68-
node-version: 14
50+
node-version: 16
51+
cache: npm
6952
registry-url: https://npm.pkg.github.com/
7053
- run: npm ci --prefer-offline
7154
- run: sed -i 's,"apollo-datasource-firestore","@swantzter/apollo-datasource-firestore",' package*.json

.github/workflows/qa.yml

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,37 +7,25 @@ jobs:
77
runs-on: ubuntu-latest
88

99
steps:
10-
- uses: actions/checkout@v2
11-
- uses: actions/cache@v2
10+
- uses: actions/checkout@v3
11+
- name: Use Node.js 16
12+
uses: actions/setup-node@v3
1213
with:
13-
path: ~/.npm
14-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
15-
restore-keys: |
16-
${{ runner.os }}-node-
17-
- name: Use Node.js 14
18-
uses: actions/setup-node@v1
19-
with:
20-
node-version: 14
14+
node-version: 16
15+
cache: npm
2116
- run: npm ci --prefer-offline
2217
- run: npm run lint
2318

2419
test:
2520
runs-on: ubuntu-latest
2621

2722
steps:
28-
- uses: actions/checkout@v2
29-
- uses: actions/cache@v2
30-
with:
31-
path: |
32-
~/.npm
33-
~/.cache/firebase/emulators/
34-
key: ${{ runner.os }}-firestore-${{ hashFiles('**/package-lock.json') }}
35-
restore-keys: |
36-
${{ runner.os }}-firestore-
37-
- name: Use Node.js 14
38-
uses: actions/setup-node@v1
23+
- uses: actions/checkout@v3
24+
- name: Use Node.js 16
25+
uses: actions/setup-node@v3
3926
with:
40-
node-version: 14
27+
node-version: 16
28+
cache: npm
4129
- uses: actions/setup-java@v2
4230
with:
4331
distribution: "adopt" # See 'Supported distributions' for available options

0 commit comments

Comments
 (0)