mirror of
https://github.com/Paillat-dev/svelte-github-calendar.git
synced 2026-01-02 01:06:20 +00:00
💚 Add authentication configuration for NPM publishing in CI
This commit is contained in:
5
.github/workflows/publish.yaml
vendored
5
.github/workflows/publish.yaml
vendored
@@ -43,6 +43,11 @@ jobs:
|
||||
- name: Build package
|
||||
run: pnpm build
|
||||
|
||||
- name: Set publishing auth config
|
||||
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
||||
|
||||
- name: Publish to NPM
|
||||
run: pnpm publish --access public --provenance --no-git-checks
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user