move token to env var
Some checks failed
Build and publish / build (push) Failing after 14s
Build and test / build (14.x) (push) Successful in 12s
Build and test / build (16.x) (push) Successful in 11s
Build and test / build (18.x) (push) Successful in 12s
Build and test / build (20.x) (push) Successful in 11s

This commit is contained in:
James Brumond 2023-08-16 19:36:32 -07:00
parent a3a670e905
commit 082d699bb9
Signed by: james
GPG Key ID: E8F2FC44BAA3357A

View File

@ -11,6 +11,9 @@ jobs:
runs-on: ubuntu-latest
env:
NPM_PUBLISH_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- name: Check out the repo
uses: actions/checkout@v3
@ -29,7 +32,7 @@ jobs:
- name: Login to package registry
run: |
npm config set @doc-utils:registry https://gitea.jbrumond.me/api/packages/doc-utils/npm/
npm config set -- '//gitea.jbrumond.me/api/packages/doc-utils/npm/:_authToken' "${{ secrets.NPM_TOKEN }}"
npm config set -- '//gitea.jbrumond.me/api/packages/doc-utils/npm/:_authToken' "$NPM_PUBLISH_TOKEN"
- name: Publish package
run: npm publish