Skip to content

Commit e63eba2

Browse files
committed
chore(ci): update release workflows
1 parent b1589af commit e63eba2

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

.github/workflows/release.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,30 @@ on:
88
jobs:
99
release:
1010
runs-on: ubuntu-latest
11-
permissions:
12-
contents: write
1311
steps:
1412
- uses: actions/checkout@v3
1513
with:
1614
fetch-depth: 0
1715

18-
- uses: actions/setup-node@v3
16+
- name: Install pnpm
17+
uses: pnpm/action-setup@v2
18+
19+
- name: Set node
20+
uses: actions/setup-node@v3
1921
with:
20-
node-version: lts/*
22+
node-version: 16.x
23+
cache: pnpm
24+
registry-url: "https://registry.npmjs.org"
2125

2226
- run: npx changelogithub
27+
continue-on-error: true
2328
env:
2429
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
30+
31+
- name: Install Dependencies
32+
run: pnpm i
33+
34+
- name: Publish to NPM
35+
run: pnpm publish --access public --no-git-checks
36+
env:
37+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
"lint": "eslint .",
8080
"play": "npm -C playground run dev",
8181
"prepublishOnly": "npm run build",
82-
"release": "bumpp && npm publish",
82+
"release": "bumpp",
8383
"start": "esno src/index.ts",
8484
"test": "vitest"
8585
},

0 commit comments

Comments
 (0)