Skip to content

Commit 7c70272

Browse files
committed
auth
1 parent 706f4da commit 7c70272

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,10 @@ jobs:
137137
run: |
138138
sed -i '' 's/"version": "0.0.0"/"version": "0.0.0-${{ github.sha }}"/' packages/global/package.json
139139
140-
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
141-
with:
142-
node-version: "22"
143-
registry-url: "https://npm.pkg.github.com"
144-
145140
- name: Publish
146-
run: pnpm --filter=@vite-plus/global publish --registry https://npm.pkg.github.com --no-git-checks
141+
run: |
142+
echo "//npm.pkg.github.com/:_authToken=${NPM_TOKEN}" >> ~/.npmrc
143+
echo "@vite-plus:registry=https://npm.pkg.github.com/" >> ~/.npmrc
144+
pnpm --filter=@vite-plus/global publish --registry https://npm.pkg.github.com --no-git-checks
145+
env:
146+
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)