mirror of
https://github.com/sartography/bpmn-js-spiffworkflow.git
synced 2025-02-23 04:58:08 +00:00
Bumps [JS-DevTools/npm-publish](https://github.com/JS-DevTools/npm-publish) from 1 to 2. - [Release notes](https://github.com/JS-DevTools/npm-publish/releases) - [Changelog](https://github.com/JS-DevTools/npm-publish/blob/main/CHANGELOG.md) - [Commits](https://github.com/JS-DevTools/npm-publish/compare/v1...v2) --- updated-dependencies: - dependency-name: JS-DevTools/npm-publish dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
28 lines
687 B
YAML
28 lines
687 B
YAML
name: Publish NPM
|
|
|
|
# On a published release, run tests and deploy to NPM
|
|
on:
|
|
workflow_dispatch:
|
|
release:
|
|
types: [published]
|
|
|
|
# Job Setup
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3 #Checkout Repo
|
|
- uses: actions/setup-node@v3 #Setup Node
|
|
with:
|
|
node-version: 18
|
|
- run: npm install
|
|
- run: npm test
|
|
- uses: JS-DevTools/npm-publish@v2
|
|
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 }}"
|