Skip to content

Commit 953c57e

Browse files
authored
update ci/cd (#15)
* update ci/cd * use actions-setup v4
1 parent 634e074 commit 953c57e

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

.github/workflows/cd.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,17 @@ jobs:
99
publish:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: DerYeger/pnpm-setup-action@master
12+
- uses: actions/checkout@v4
13+
- uses: pnpm/action-setup@v4
14+
- uses: actions/setup-node@v3
1315
with:
1416
node-version: 18
17+
registry-url: 'https://registry.npmjs.org'
18+
cache: 'pnpm'
19+
cache-dependency-path: '**/pnpm-lock.yaml'
20+
- run: pnpm install --frozen-lockfile
1521
- run: npm test
1622
- run: npm run compile
17-
- run: |
18-
echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > .npmrc
19-
npm publish
23+
- run: npm publish
2024
env:
2125
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/ci.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@ jobs:
88
test:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: DerYeger/pnpm-setup-action@master
11+
- uses: actions/checkout@v4
12+
- uses: pnpm/action-setup@v4
13+
- uses: actions/setup-node@v3
1214
with:
1315
node-version: 18
16+
cache: 'pnpm'
17+
cache-dependency-path: '**/pnpm-lock.yaml'
18+
- run: pnpm install --frozen-lockfile
1419
- run: npm test

0 commit comments

Comments
 (0)