Skip to content

edited publish.yml

edited publish.yml #4

Workflow file for this run

name: Publish Package
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
registry-url: https://registry.npmjs.org
- name: Install Dependencies
run: npm install
- name: Build Package
run: npm run build
- name: Publish Package
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
run: npm publish --access public