Skip to content

Commit

Permalink
ci: modify publish command for try publish in changeset action ci
Browse files Browse the repository at this point in the history
  • Loading branch information
zthxxx committed Aug 21, 2021
1 parent d3e22ff commit 481bee4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ jobs:
# https://github.com/changesets/action
uses: changesets/action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ You don't need to compile (`node-gyp`) or download (`node-pre-gyp`) anything by

## Support platforms

| | node12 | node14 | node16 |
| --------------------- | ------ | ------ | ------ |
| platform \ node | node12 | node14 | node16 |
| ---------------------- | ------ | ------ | ------ |
| Linux x64 ||||
| Linux arm64 ||||
| Linux arm32 ||||
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "getrusage.js",
"version": "0.2.1",
"sideEffects": false,
"version": "0.2.5",
"description": "getrusage for node precompiled",
"sideEffects": false,
"main": "lib/index.js",
"types": "lib/index.d.ts",
"keywords": [
Expand All @@ -12,6 +12,7 @@
"license": "MIT",
"repository": "zthxxx/getrusage.js",
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org"
},
"homepage": "https://github.com/zthxxx/getrusage.js",
Expand Down

0 comments on commit 481bee4

Please sign in to comment.