Skip to content

Commit 545c028

Browse files
committed
(CI): add secrets
1 parent 04f8056 commit 545c028

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/cd-npm.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ jobs:
1111
with:
1212
checkout_ref: ${{ github.event.release.target_commitish }}
1313
tag_name: ${{ github.event.release.tag_name }}
14+
secrets:
15+
NPM: ${{ secrets.NPM_TOKEN }}
16+
GITHUB: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/w-deploy-npm.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ on:
1414
default: latest
1515
required: false
1616
secrets:
17-
NPM_TOKEN:
17+
NPM:
18+
required: true
19+
GITHUB:
20+
required: true
1821

1922
jobs:
2023
publish:
@@ -37,12 +40,12 @@ jobs:
3740
fi
3841
- uses: JS-DevTools/npm-publish@v1
3942
with:
40-
token: ${{ secrets.NPM_TOKEN }}
43+
token: ${{ secrets.NPM }}
4144
tag: ${{ github.event.release.tag_name }}
4245
- name: Commit and push
4346
run: |
4447
git add .
4548
git commit -am "🏷️(version) Update boilerplate to version ${{ github.event.release.tag_name }}"
4649
git push
4750
env:
48-
github-token: ${{ secrets.GITHUB_TOKEN }}
51+
github-token: ${{ secrets.GITHUB }}

0 commit comments

Comments
 (0)