File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Publish Package
22
33on :
44 release :
5- types : [released ]
5+ types : [published ]
66
77jobs :
88 deploy :
@@ -14,23 +14,16 @@ jobs:
1414 - name : Use Node.js
1515 uses : actions/setup-node@v3
1616 with :
17- node-version : ' lts/gallium'
18-
19- - name : Get project Version
20- id : package-version
21- uses : martinbeentjes/npm-get-version-action@v1.3.1
22-
23- - name : Show project version
24- run : |
25- echo "Publish version => ${{ steps.package-version.outputs.current-version }}"
17+ node-version : ' lts/gallium'
18+ registry-url : ' https://registry.npmjs.org'
2619
2720 - name : Install dependencies
2821 run : npm install
2922
3023 - name : Run Tests
3124 run : npm run test
3225
33- # - name: Publish Package to npmjs
34- # - run: npm publish
35- # env:
36- # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
26+ - name : Publish Package to npmjs
27+ run : npm publish --access public
28+ env :
29+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments