Skip to content

Publish

Publish #8

Workflow file for this run

name: Publish
on:
release:
types: [released]
jobs:
publish:
name: Upload archives
runs-on: macos-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Build
run: |
cd plugin
yarn
yarn build
- name: Setup node for publishing
uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- name: Publish to npm
run: |
cd plugin
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}