Skip to content

Commit b6c1db7

Browse files
committed
release
1 parent be0ea78 commit b6c1db7

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,18 @@ jobs:
2525
with:
2626
node-version: 20
2727
cache: npm
28-
registry-url: "https://registry.npmjs.org"
2928

3029
- name: Install dependencies
3130
run: npm ci
3231

33-
- name: Create Release PR or Publish
32+
- name: Build
33+
run: npm run build
34+
35+
- name: Create Release PR
3436
uses: changesets/action@v1
35-
with:
36-
publish: npm run release
3737
env:
3838
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39-
NPM_CONFIG_PROVENANCE: true
39+
40+
- name: Publish to npm
41+
run: npm publish --provenance --access public
42+
continue-on-error: true

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"lint": "eslint src/",
2727
"changeset": "changeset",
2828
"version": "changeset version",
29-
"release": "npm run build && changeset publish",
29+
"release": "npm run build && npm publish --provenance --access public",
3030
"prepublishOnly": "npm run build"
3131
},
3232
"dependencies": {

0 commit comments

Comments
 (0)