Skip to content

Commit b1f9a44

Browse files
committed
fix: add secrets
1 parent c6fb9b6 commit b1f9a44

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/publish.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
jobs:
88
publish:
99
runs-on: ubuntu-latest
10+
environment: Production
1011
steps:
1112
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
1213
with:
@@ -16,11 +17,14 @@ jobs:
1617
- uses: actions/setup-node@v4
1718
with:
1819
node-version-file: package.json
20+
registry-url: 'https://registry.npmjs.org'
1921
cache: "npm"
2022
- name: Install dependencies
2123
run: |
2224
npm ci
23-
- run: |
25+
- env:
26+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
27+
run: |
2428
npm publish
2529
- run: |
2630
gh release create ${{ github.ref }} --title "${{ github.ref }}" --notes "Release ${{ github.ref }}" --generate-notes

0 commit comments

Comments
 (0)