Skip to content

chore: update github action #6

chore: update github action

chore: update github action #6

Workflow file for this run

name: "publish package to npm"
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: node
uses: actions/setup-node@v2
with:
node-version: 18
registry-url: https://registry.npmjs.org
- name: Install Yarn
run: npm install -g yarn
- name: Install Dependencies
run: yarn install
- name: Build
run: yarn build # Adjust this script based on your project setup
- name: publish
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}}