Skip to content

Add publishConfig for npm #3

Add publishConfig for npm

Add publishConfig for npm #3

Workflow file for this run

name: Release
on:
push:
tags:
- "v*.*.*"
- "v*.*.*-*"
jobs:
npm:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Yarn install
uses: borales/actions-yarn@v4
with:
cmd: install --frozen-lockfile
- name: Set NPM token
run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: NPM publish
run: npm publish --access public