Updating version number #5
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: 'Publish' | |
on: | |
push: | |
tags: | |
- '**' | |
jobs: | |
npm: | |
runs-on: ubuntu-latest | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '18' | |
registry-url: https://registry.npmjs.org/ | |
- run: npm ci --legacy-peer-deps | |
# pre-releases, triggered by `next` as part of git tag | |
- run: npm publish --tag next --access public | |
if: ${{ contains(github.ref, 'next') }} | |
# production releases | |
- run: npm publish --access public | |
if: ${{ !contains(github.ref, 'next') }} |