File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change 1
- name : " NPM Publish "
1
+ name : " Release New Version "
2
2
3
3
on :
4
4
workflow_dispatch :
@@ -24,28 +24,25 @@ jobs:
24
24
- name : " Install dependencies"
25
25
run : npm ci
26
26
27
- - name : " Clean untracked files "
28
- run : git clean -fdx
27
+ - name : " Build package "
28
+ run : npm run build
29
29
30
30
- name : " Set Git user name and email"
31
31
run : |
32
32
git config --global user.name "github-actions"
33
33
git config --global user.email "[email protected] "
34
34
35
- - name : " Bump patch version"
36
- run : npm version patch
37
-
38
- - name : " Get new version"
35
+ - name : " Get version"
39
36
id : get_version
40
37
run : echo "version=v$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
41
38
42
- - name : " Push version bump commit and tag "
39
+ - name : " Push tags "
43
40
run : |
44
- git push origin HEAD
41
+ git tag ${{ steps.get_version.outputs.version }}
45
42
git push origin --tags
46
43
47
44
- name : " Publish to NPM"
48
- run : npm publish
45
+ run : npm publish --access public
49
46
env :
50
47
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
51
48
You can’t perform that action at this time.
0 commit comments