mirror of
https://github.com/garronej/ts-ci.git
synced 2025-11-30 21:43:05 +00:00
update
This commit is contained in:
parent
a5e844649b
commit
6195b4ad92
2 changed files with 4 additions and 4 deletions
6
.github/workflows/publish.yaml
vendored
6
.github/workflows/publish.yaml
vendored
|
|
@ -55,13 +55,13 @@ jobs:
|
||||||
run: ls -lR
|
run: ls -lR
|
||||||
- name: Publishing on NPM
|
- name: Publishing on NPM
|
||||||
run: |
|
run: |
|
||||||
if [ "$NODE_AUTH_TOKEN" = "" ]; then
|
if [ "$NPM_TOKEN" = "" ]; then
|
||||||
echo "Can't publish on NPM, You must first create a secret called NODE_AUTH_TOKEN that contains your NPM auth token. https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets"
|
echo "Can't publish on NPM, You must first create a secret called NPM_TOKEN that contains your NPM auth token. https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets"
|
||||||
false
|
false
|
||||||
fi
|
fi
|
||||||
npm publish
|
npm publish
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|
||||||
- name: Commit changes
|
- name: Commit changes
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
The following Secrets need to be set to be able to publish.
|
The following Secrets need to be set to be able to publish.
|
||||||
|
|
||||||
- ``PAT``: GitHub Personal access token.
|
- ``PAT``: GitHub Personal access token.
|
||||||
- ``NODE_AUTH_TOKEN``: NPM Authorization token.
|
- ``NPM_TOKEN``: NPM Authorization token.
|
||||||
|
|
||||||
# NOTES:
|
# NOTES:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue