bpmn-js-spiffworkflow/.github/workflows/publish.yml

28 lines
687 B
YAML
Raw Permalink Normal View History

2022-06-09 16:51:52 +00:00
name: Publish NPM
2022-06-09 17:03:56 +00:00
# On a published release, run tests and deploy to NPM
on:
workflow_dispatch:
release:
2022-06-09 17:03:56 +00:00
types: [published]
# Job Setup
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4 #Checkout Repo
- uses: actions/setup-node@v4 #Setup Node
with:
node-version: 18
- run: npm install
- run: npm test
- uses: JS-DevTools/npm-publish@v3
2022-06-09 16:45:34 +00:00
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
- if: steps.publish.outputs.type != 'none'
run: |
echo "Version changed: ${{ steps.publish.outputs.old-version }} => ${{ steps.publish.outputs.version }}"