Commit 55a5ade 1 parent 01564d0 commit 55a5ade Copy full SHA for 55a5ade
File tree 1 file changed +8
-7
lines changed
1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 7
7
push :
8
8
branches :
9
9
- master
10
- tags :
11
- - ' v*.*.* '
10
+ release :
11
+ types : [published]
12
12
13
13
jobs :
14
14
test :
@@ -96,11 +96,14 @@ jobs:
96
96
97
97
publish :
98
98
runs-on : ubuntu-latest
99
- if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
99
+ if : github.event_name == 'release'
100
100
needs :
101
101
- test
102
102
- build
103
103
- lint
104
+ env :
105
+ # Used in setup-node and publish steps
106
+ NODE_AUTH_TOKEN : ${{ secrets.NPMJS_PUBLISH_TOKEN }}
104
107
steps :
105
108
- name : Checkout
106
109
uses : actions/checkout@v4
@@ -110,14 +113,12 @@ jobs:
110
113
with :
111
114
node-version-file : .nvmrc
112
115
cache : ' yarn'
116
+ registry-url : ' https://registry.npmjs.org'
113
117
114
118
- name : Install dependencies
115
119
run : yarn install --frozen-lockfile
116
120
117
121
- run : yarn build
118
122
119
- - name : Authenticate with npm registry
120
- run : echo "//registry.npmjs.org/:_authToken=${{ secrets.NPMJS_PUBLISH_TOKEN }}" > ~/.npmrc
121
-
122
123
- name : Publish to npm registry
123
- run : npm publish --access= public
124
+ run : npm publish --provenance -- access public
You can’t perform that action at this time.
0 commit comments