Skip to content

v3.2.9

v3.2.9 #4

Workflow file for this run

name: Publish npm
on:
release:
types: [published, prereleased]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: npm
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm test
- run: npm run build
- name: Publish to npm
run: |
if [[ "${{ github.event.release.prerelease }}" == "true" ]]; then
npm publish --tag next --access public
else
npm publish --access public
fi
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}