Commit 554e0e9 1 parent b136fe7 commit 554e0e9 Copy full SHA for 554e0e9
File tree 1 file changed +23
-4
lines changed
1 file changed +23
-4
lines changed Original file line number Diff line number Diff line change 1
- name : Publish Package to npmjs
1
+ name : Release and publish the package
2
2
on :
3
- release :
4
- types : [published]
3
+ push :
4
+ tags :
5
+ - " v*"
6
+
7
+ permissions :
8
+ contents : write
9
+
5
10
jobs :
6
- build :
11
+ release-npmjs :
7
12
runs-on : ubuntu-latest
8
13
steps :
9
14
- uses : actions/checkout@v4
17
22
- run : yarn npm publish
18
23
env :
19
24
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
25
+ release-github :
26
+ runs-on : ubuntu-latest
27
+ steps :
28
+ - uses : actions/checkout@v4
29
+ - uses : actions/setup-node@v4
30
+ with :
31
+ node-version : ' 20.x'
32
+ registry-url : ' https://npm.pkg.github.com'
33
+ # Defaults to the user or organization that owns the workflow file
34
+ scope : ' @traut'
35
+ - run : yarn
36
+ - run : yarn npm publish
37
+ env :
38
+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments