Skip to content

Commit eca863c

Browse files
committed
update ci/cd
1 parent 634e074 commit eca863c

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

.github/workflows/cd.yml

+10-4
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,19 @@ jobs:
99
publish:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: DerYeger/pnpm-setup-action@master
12+
- uses: actions/checkout@v3
13+
- uses: pnpm/action-setup@v2
14+
with:
15+
version: 8.2.0
16+
- uses: actions/setup-node@v3
1317
with:
1418
node-version: 18
19+
registry-url: 'https://registry.npmjs.org'
20+
cache: 'pnpm'
21+
cache-dependency-path: '**/pnpm-lock.yaml'
22+
- run: pnpm install --frozen-lockfile
1523
- run: npm test
1624
- run: npm run compile
17-
- run: |
18-
echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > .npmrc
19-
npm publish
25+
- run: npm publish
2026
env:
2127
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/ci.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,14 @@ jobs:
88
test:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: DerYeger/pnpm-setup-action@master
11+
- uses: actions/checkout@v3
12+
- uses: pnpm/action-setup@v2
13+
with:
14+
version: 8.2.0
15+
- uses: actions/setup-node@v3
1216
with:
1317
node-version: 18
18+
cache: 'pnpm'
19+
cache-dependency-path: '**/pnpm-lock.yaml'
20+
- run: pnpm install --frozen-lockfile
1421
- run: npm test

0 commit comments

Comments
 (0)