Skip to content

Publish

Publish #3

Workflow file for this run

name: Publish
on:
push:
tags:
- '*'
jobs:
publish:
name: Publish to npm
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install node + Install deps with pnpm
uses: wyvox/action-setup-pnpm@v3
with:
node-registry-url: 'https://registry.npmjs.org'
- name: auto-dist-tag
run: npx auto-dist-tag --write
working-directory: './addon/'
- name: publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
working-directory: './addon/'