Skip to content

Commit 49af650

Browse files
committed
now?
1 parent aeefcd5 commit 49af650

File tree

2 files changed

+9
-21
lines changed

2 files changed

+9
-21
lines changed

.github/workflows/npm-publish.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,32 +16,24 @@ jobs:
1616
name: Node v${{ matrix.node }} test
1717
steps:
1818
- uses: actions/checkout@v2
19-
- uses: pnpm/action-setup@v2.0.1
20-
with:
21-
version: 6.6.2
2219
- uses: actions/setup-node@v2
2320
with:
2421
node-version: ${{ matrix.node }}
25-
cache: 'pnpm'
26-
- run: pnpm i
27-
- run: pnpm run build
28-
- run: pnpm test
22+
- uses: jaid/action-npm-install@v1.2.1
23+
- run: npm run build
24+
- run: npm test
2925

3026
publish-npm:
3127
needs: test
3228
runs-on: ubuntu-latest
3329
steps:
3430
- uses: actions/checkout@v2
35-
- uses: pnpm/action-setup@v2.0.1
36-
with:
37-
version: 6.6.2
3831
- uses: actions/setup-node@v2
3932
with:
4033
node-version: '16'
41-
cache: 'pnpm'
4234
registry-url: https://registry.npmjs.org/
43-
- run: pnpm i
44-
- run: pnpm run build
45-
- run: pnpm publish
35+
- uses: jaid/action-npm-install@v1.2.1
36+
- run: npm run build
37+
- run: npm publish
4638
env:
4739
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

.github/workflows/npm-test.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,9 @@ jobs:
1111
name: Node v${{ matrix.node }} test
1212
steps:
1313
- uses: actions/checkout@v2
14-
- uses: pnpm/action-setup@v2.0.1
15-
with:
16-
version: 6.6.2
1714
- uses: actions/setup-node@v2
1815
with:
1916
node-version: ${{ matrix.node }}
20-
cache: 'pnpm'
21-
- run: pnpm i
22-
- run: pnpm run build
23-
- run: pnpm test
17+
- uses: jaid/action-npm-install@v1.2.1
18+
- run: npm run build
19+
- run: npm test

0 commit comments

Comments
 (0)