Skip to content

Commit 218b225

Browse files
Merge branch 'main' into clean-main
2 parents 16f4732 + bf09a39 commit 218b225

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

.github/workflows/CI.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,11 @@ jobs:
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

.github/workflows/release.yaml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)