Skip to content

Commit

Permalink
ci: try to remove NODE_AUTH_TOKEN for changesets/action
Browse files Browse the repository at this point in the history
  • Loading branch information
zthxxx committed Aug 25, 2021
1 parent 481bee4 commit c58e0f5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ runs:
uses: actions/setup-node@v2
with:
node-version: ${{ inputs.node-version }}
registry-url: https://registry.npmjs.org

- name: Setup pnpm
# https://github.com/pnpm/action-setup
Expand All @@ -44,6 +43,7 @@ runs:
node --version
npm --version
pnpm --version
cat ~/.npmrc || true
- name: Cache .pnpm-store
# https://github.com/actions/cache
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,5 @@ jobs:
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# seems a bug that need `NODE_AUTH_TOKEN` while using `changeset publish` with `actions/setup-node` and `changesets/action`
# https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages#publishing-packages-to-the-npm-registry
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
with:
publish: pnpm changeset publish
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "getrusage.js",
"version": "0.2.5",
"version": "0.2.6",
"description": "getrusage for node precompiled",
"sideEffects": false,
"main": "lib/index.js",
Expand Down

0 comments on commit c58e0f5

Please sign in to comment.