Skip to content

Commit 9b61ed2

Browse files
authored
npm publishを分離する (#9)
1 parent f75eacb commit 9b61ed2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ jobs:
1616
cache: 'yarn'
1717
- run: yarn install --frozen-lockfile
1818
- name: release on npm
19-
run: yarn release
19+
run: npm publish
2020
env:
2121
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@
3838
"dev:build": "nuxi build playground",
3939
"dev:prepare": "nuxt-module-build --stub && nuxi prepare playground",
4040
"lint": "eslint .",
41-
"prepack": "nuxt-module-build",
42-
"release": "nuxi prepare playground && yarn lint && yarn prepack && npm publish --registry https://registry.npmjs.org"
41+
"prepublishOnly": "nuxi prepare playground && yarn lint && nuxt-module-build"
4342
},
4443
"dependencies": {
4544
"@nuxt/kit": "^3.2.0",

0 commit comments

Comments
 (0)