Skip to content

Fix gha

Fix gha #4

Workflow file for this run

name: Release
on:
push:
branches:
- master
- develop
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- run: cp -r {README.md,CHANGELOG.md,docs} plugin
- name: Publish
working-directory: ./plugin
run: npm publish --access public --tag ${{github.ref_name == 'master' && 'latest' || 'next' }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}