v2.3.0-next.2 #19
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Version Release | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- id: get_version | |
uses: battila7/get-version-action@v2 | |
- name: Node commands | |
uses: actions/setup-node@v3 | |
with: | |
registry-url: 'https://registry.npmjs.org/' | |
- run: npm install | |
- run: npm test | |
- run: npm publish | |
if: steps.get_version.outputs.prerelease == '' | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- run: npm publish --tag next | |
if: steps.get_version.outputs.prerelease != '' | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Release | |
uses: softprops/action-gh-release@v1 |