Skip to content

Try to fix publishing #9

Try to fix publishing

Try to fix publishing #9

Workflow file for this run

name: Publish Package to NPM
on:
push:
tags:
- "v*"
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "16"
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: yarn install
- name: Authenticate with NPM
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
- name: Publish package to NPM
run: yarn publish --access public --non-interactive --new-version ${{ github.ref_name }}