File tree Expand file tree Collapse file tree 2 files changed +18
-5
lines changed
Expand file tree Collapse file tree 2 files changed +18
-5
lines changed Original file line number Diff line number Diff line change 7575
7676 - name : Publish
7777 if : ${{ success() && runner.os == 'Linux' && github.event_name == 'push' && github.ref == 'refs/heads/main'}}
78- run : yarn publish --tag next --no-git-tag-version --prepatch --preid "$(git rev-parse --short HEAD)"
78+ run : |
79+ yarn config set npmRegistryServer "https://registry.npmjs.org"
80+ yarn config set npmAlwaysAuth true
81+ yarn config set npmAuthToken ${{ secrets.NPM_TOKEN }}
82+ yarn publish --tag next --no-git-tag-version --prepatch --preid "$(git rev-parse --short HEAD)"
7983 env :
8084 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
8185
Original file line number Diff line number Diff line change @@ -40,10 +40,19 @@ jobs:
4040 - name : Run Test
4141 run : yarn test
4242
43- # Publish to npm
44- - run : |
45- yarn check-dependencies
46- yarn publish --access public
43+ # Check dependencies
44+ - name : Run Check-Dependencies
45+ run : yarn check-dependencies
46+
47+ - name : Set Publish Auth
48+ run : |
49+ yarn config set npmRegistryServer "https://registry.npmjs.org"
50+ yarn config set npmAlwaysAuth true
51+ yarn config set npmAuthToken ${{ secrets.NPM_TOKEN }}
52+
53+ # Publish to npm
54+ - name : Publish to npm
55+ run : yarn publish --access public
4756 env :
4857 NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
4958
You can’t perform that action at this time.
0 commit comments