File tree Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 75
75
76
76
- name : Publish
77
77
if : ${{ success() && runner.os == 'Linux' && github.event_name == 'push' && github.ref == 'refs/heads/main'}}
78
- run : npm publish --tag next --no-git-tag-version --prepatch --preid "$(git rev-parse --short HEAD)"
78
+ run : |
79
+ {
80
+ echo "registry=https://registry.npmjs.com"
81
+ echo "//registry.npmjs.com/:_authToken=${NPM_TOKEN}"
82
+ } > .npmrc
83
+ npm publish --tag next --no-git-tag-version --prepatch --preid "$(git rev-parse --short HEAD)"
79
84
env :
80
- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
85
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
81
86
82
87
# Setup QEMU as requirement for docker
83
88
- name : Set up QEMU
Original file line number Diff line number Diff line change @@ -45,11 +45,19 @@ jobs:
45
45
- name : Run Check Dependencies
46
46
run : npm run check-dependencies
47
47
48
+ # Config .npmrc
49
+ - name : Config .npmrc
50
+ run : |
51
+ {
52
+ echo "registry=https://registry.npmjs.com"
53
+ echo "//registry.npmjs.com/:_authToken=${NPM_TOKEN}"
54
+ } > .npmrc
55
+
48
56
# Publish to npm
49
57
- name : Publish to npm
50
58
run : npm publish --access public
51
59
env :
52
- NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
60
+ NPM_TOKEN : ${{secrets.NPM_TOKEN}}
53
61
54
62
# Get the current package.json version so we can tag the image correctly
55
63
- name : Get current package.json version
You can’t perform that action at this time.
0 commit comments