We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 706f4da commit 7c70272Copy full SHA for 7c70272
1 file changed
.github/workflows/release.yml
@@ -137,10 +137,10 @@ jobs:
137
run: |
138
sed -i '' 's/"version": "0.0.0"/"version": "0.0.0-${{ github.sha }}"/' packages/global/package.json
139
140
- - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
141
- with:
142
- node-version: "22"
143
- registry-url: "https://npm.pkg.github.com"
144
-
145
- name: Publish
146
- run: pnpm --filter=@vite-plus/global publish --registry https://npm.pkg.github.com --no-git-checks
+ run: |
+ echo "//npm.pkg.github.com/:_authToken=${NPM_TOKEN}" >> ~/.npmrc
+ echo "@vite-plus:registry=https://npm.pkg.github.com/" >> ~/.npmrc
+ pnpm --filter=@vite-plus/global publish --registry https://npm.pkg.github.com --no-git-checks
+ env:
+ NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments