Skip to content

Update npm-publish.yml #3

Update npm-publish.yml

Update npm-publish.yml #3

Workflow file for this run

name: Publish Package to npm
on:
push:
tags:
- 'v*'
jobs:
publish:
runs-on: ubuntu-latest
environment: NPM_TOKEN
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
- name: Install Yarn
run: npm install -g yarn
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Build
run: yarn compile
- name: Publish
run: yarn publish --non-interactive
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}