Skip to content

v6.1.2

v6.1.2 #31

Workflow file for this run

name: publish npm package
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- name: Release latest package
run: |
npm --no-git-tag-version --allow-same-version version ${{ github.event.release.name }}
npm install
npm run build
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}}
- name: Release next package
run: |
npm version --no-git-tag-version --allow-same-version ${{ github.event.release.name }}-dev
npm version prerelease --no-git-tag-version --allow-same-version --preid beta
npm publish --tag next
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}}