Skip to content

v0.2.1

v0.2.1 #5

Workflow file for this run

name: npm publish
on:
workflow_dispatch:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
always-auth: true
- name: Setup .yarnrc.yml
run: yarn config set npmAuthToken $NODE_AUTH_TOKEN
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Install Depencencies
run: yarn install
- name: Build, Test, and Package
run: yarn prepack && yarn test
- name: Publish npm package to the registry
run: yarn npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}