Skip to content

Release Package

Release Package #2

Workflow file for this run

name: Node.js Package
on:
release:
types: [released]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.11.0
- name: Install dependencies
run: yarn install
- name: Linter
run: yarn lint
- name: Types check
run: yarn validate:types
- name: Prettier
run: yarn prettier
publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.11.0
registry-url: https://registry.npmjs.org/
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}