File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -33,21 +33,25 @@ jobs:
33
33
uses : actions/setup-node@v3
34
34
with :
35
35
node-version : ' 20'
36
+ registry-url : ' https://registry.npmjs.org'
36
37
37
38
- name : Enable Corepack
38
39
run : corepack enable
39
40
40
41
- name : Install dependencies
41
42
run : yarn --immutable
42
43
44
+ - name : Generate archive
45
+ run : yarn pack
46
+
43
47
- name : Publish with latest tag
44
48
if : github.event.release.prelease == false
45
- run : yarn npm publish --tag latest
49
+ run : npm publish package.tgz --tag latest --provenance
46
50
env :
47
- YARN_NPM_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
51
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
48
52
49
53
- name : Publish with next tag
50
54
if : github.event.release.prelease == true
51
- run : yarn npm publish --tag next
55
+ run : npm publish package.tgz --tag next --provenance
52
56
env :
53
- YARN_NPM_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
57
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments