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
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:
parent
a3a670e905
commit
082d699bb9
@ -11,6 +11,9 @@ jobs:
|
|||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
env:
|
||||||
|
NPM_PUBLISH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out the repo
|
- name: Check out the repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@ -29,7 +32,7 @@ jobs:
|
|||||||
- name: Login to package registry
|
- name: Login to package registry
|
||||||
run: |
|
run: |
|
||||||
npm config set @doc-utils:registry https://gitea.jbrumond.me/api/packages/doc-utils/npm/
|
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
|
- name: Publish package
|
||||||
run: npm publish
|
run: npm publish
|
||||||
|
Loading…
x
Reference in New Issue
Block a user