mirror of
https://github.com/wickedest/Mergely.git
synced 2026-02-02 09:38:00 +08:00
ci: use token
This commit is contained in:
8
.github/workflows/npm-publish.yaml
vendored
8
.github/workflows/npm-publish.yaml
vendored
@@ -16,7 +16,7 @@ jobs:
|
||||
- name: Setup node
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 10
|
||||
node-version: 14
|
||||
registry-url: https://registry.npmjs.org
|
||||
|
||||
- name: Git checkout
|
||||
@@ -34,10 +34,10 @@ jobs:
|
||||
run: npm run build:dist
|
||||
|
||||
- name: Release
|
||||
run: npm run release
|
||||
uses: oleksiyrudenko/gha-git-credentials@v2-latest
|
||||
uses: fusion-engineering/setup-git-credentials@v2
|
||||
with:
|
||||
token: '${{ secrets.CI_TOKEN }}'
|
||||
credentials: '${{ secrets.CI_TOKEN }}'
|
||||
- run: npm run release
|
||||
|
||||
- name: Publish
|
||||
run: npm publish --access public --tag ${{ github.event.inputs.tag }}
|
||||
|
||||
Reference in New Issue
Block a user