File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed
Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 2222 - run : npm whoami; npm publish
2323 env :
2424 NODE_AUTH_TOKEN : ${{secrets.npm_token}}
25+ publish-registry :
26+ runs-on : ubuntu-latest
27+ steps :
28+ - uses : actions/checkout@v3
29+ - uses : actions/setup-node@v3
30+ with :
31+ node-version : 14
32+ registry-url : https://registry.npmjs.org/
33+ cache : npm
34+ - run : npm ci
35+ - run : npm test
36+ - run : npm version ${TAG_NAME} --git-tag-version=false
37+ env :
38+ TAG_NAME : ${{ github.event.release.tag_name }}
39+ - run : npm whoami; npm publish --@github:registry='https://npm.pkg.github.com'
Original file line number Diff line number Diff line change 1313 "build" : " rollup -c" ,
1414 "pretest" : " npm run build" ,
1515 "test" : " karma start karma.config.js" ,
16- "prepublishOnly" : " npm run build" ,
17- "postpublish" : " npm publish --ignore-scripts --@github:registry='https://npm.pkg.github.com'"
16+ "prepublishOnly" : " npm run build"
1817 },
1918 "keywords" : [
2019 " clipboard" ,
You can’t perform that action at this time.
0 commit comments