File tree Expand file tree Collapse file tree 3 files changed +12
-15
lines changed Expand file tree Collapse file tree 3 files changed +12
-15
lines changed Original file line number Diff line number Diff line change @@ -28,11 +28,10 @@ jobs:
28
28
- name : Test
29
29
if : steps.check.outputs.changed == 'true' && contains(steps.check.outputs.version, 'beta')
30
30
run : pnpm test
31
- - name : Setup publish token
32
- if : steps.check.outputs.changed == 'true' && contains(steps.check.outputs.version, 'beta')
33
- run : echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > .npmrc
34
- env :
35
- NPM_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }}
36
31
- name : Publish
37
32
if : steps.check.outputs.changed == 'true' && contains(steps.check.outputs.version, 'beta')
33
+ # We need --no-git-checks because we swap a boolean to allow more lax types
34
+ # in the published package.
38
35
run : pnpm publish --tag beta --no-git-checks
36
+ env :
37
+ npm_config_//registry.npmjs.org/:_authToken : ${{ secrets.NPM_AUTH_TOKEN }}
Original file line number Diff line number Diff line change @@ -28,11 +28,10 @@ jobs:
28
28
- name : Test
29
29
if : steps.check.outputs.changed == 'true'
30
30
run : pnpm test
31
- - name : Setup publish token
32
- if : steps.check.outputs.changed == 'true'
33
- run : echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > .npmrc
34
- env :
35
- NPM_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }}
36
31
- name : Publish
37
32
if : steps.check.outputs.changed == 'true'
33
+ # We need --no-git-checks because we swap a boolean to allow more lax types
34
+ # in the published package.
38
35
run : pnpm publish --tag lts --no-git-checks
36
+ env :
37
+ npm_config_//registry.npmjs.org/:_authToken : ${{ secrets.NPM_AUTH_TOKEN }}
Original file line number Diff line number Diff line change @@ -30,14 +30,13 @@ jobs:
30
30
- name : Test
31
31
if : steps.check.outputs.changed == 'true'
32
32
run : pnpm test
33
- - name : Setup publish token
34
- if : steps.check.outputs.changed == 'true'
35
- run : echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > .npmrc
36
- env :
37
- NPM_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }}
38
33
- name : Publish
39
34
if : steps.check.outputs.changed == 'true'
35
+ # We need --no-git-checks because we swap a boolean to allow more lax types
36
+ # in the published package.
40
37
run : pnpm publish --no-git-checks
38
+ env :
39
+ npm_config_//registry.npmjs.org/:_authToken : ${{ secrets.NPM_AUTH_TOKEN }}
41
40
- name : Generate Release
42
41
if : steps.check.outputs.changed == 'true'
43
42
run : |
You can’t perform that action at this time.
0 commit comments