Skip to content

Commit

Permalink
test publish
Browse files Browse the repository at this point in the history
  • Loading branch information
shaonianzhentan committed Dec 11, 2024
1 parent 553b20e commit 5318931
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,16 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,8 @@
"dependencies": {
"gcoord": "^1.0.5",
"node-pinyin": "^0.2.3"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/"
}
}
}

0 comments on commit 5318931

Please sign in to comment.