Skip to content

Release 1.1.2

Release 1.1.2 #9

Workflow file for this run

# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: Node.js Package
on:
release:
types: [published]
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Not needed if lastUpdated is not enabled
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
cache: yarn # or pnpm / yarn
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: yarn install --immutable
- name: Build dist files
run: yarn build
- name: "Run test suites"
run: yarn test
- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}