Skip to content

Commit 7a2bf57

Browse files
ci: provenance publish
1 parent a81332f commit 7a2bf57

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,11 @@ jobs:
2121

2222
- run: npx changelogithub@latest
2323
env:
24-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
26+
- env:
27+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
28+
run: |
29+
yarn config set npmAlwaysAuth true
30+
yarn config set npmAuthToken $NPM_TOKEN
31+
yarn npm publish

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
],
2121
"scripts": {
2222
"prepack": "yarn run build",
23-
"build": "nuxt-module-build",
23+
"build": "nuxt-module-build build",
2424
"dev": "nuxi dev playground",
2525
"dev:build": "nuxi build playground",
26-
"dev:prepare": "nuxt-module-build --stub && nuxi prepare playground",
26+
"dev:prepare": "nuxt-module-build prepare --stub && nuxi prepare playground",
2727
"lint": "eslint .",
2828
"test": "vitest run"
2929
},

0 commit comments

Comments
 (0)