File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -23,14 +23,18 @@ jobs:
23
23
- uses : actions/setup-node@v3
24
24
with :
25
25
node-version : 18
26
+ registry-url : ' https://registry.npmjs.org'
26
27
- run : npm ci || npm install
27
28
- uses : fregante/setup-git-user@v2
28
29
- name : Create version
29
- run : VERSION="$(npm version "${{ github.event.inputs.Version }}")"
30
30
# Get the generated version, this enables support for keywords: `npm version patch`
31
+ run : |
32
+ VERSION="$(npm version "${{ github.event.inputs.Version }}")"
33
+ echo "VERSION=$VERSION" >> $GITHUB_ENV
31
34
- run : npm publish
32
35
env :
33
36
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
37
+ - run : git push --follow-tags
34
38
- run : gh release create "$VERSION" --generate-notes
35
39
env :
36
40
GH_TOKEN : ${{ github.token }}
You can’t perform that action at this time.
0 commit comments