feat: add finish step
This commit is contained in:
parent
63f9cd6207
commit
11ed6d239c
1 changed files with 10 additions and 2 deletions
|
@ -70,8 +70,8 @@ jobs:
|
||||||
env:
|
env:
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
publish-production:
|
publish-production:
|
||||||
runs-on: ubuntu-latest
|
runs-on: docker
|
||||||
needs: build-and-test
|
needs: prepare-package
|
||||||
container:
|
container:
|
||||||
image: node:20-alpine
|
image: node:20-alpine
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
|
@ -92,3 +92,11 @@ jobs:
|
||||||
npm publish
|
npm publish
|
||||||
env:
|
env:
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|
||||||
|
finish-deploy:
|
||||||
|
runs-on: docker
|
||||||
|
needs: prepare-package
|
||||||
|
steps:
|
||||||
|
- name: Publish to NPM (production)
|
||||||
|
run: |
|
||||||
|
echo "OK Done".
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue