Skip to content

0.7.3

0.7.3 #99

Workflow file for this run

name: Publish to NPM
on:
push:
branches:
- main
paths:
- package.json
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout git repository πŸ›’
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Setup Node βš™οΈ
uses: actions/setup-node@v4
with:
node-version-file: ".tool-versions"
cache: npm
cache-dependency-path: "package-lock.json"
registry-url: "https://registry.npmjs.org"
- name: Install dependencies πŸ”§
# include devDependencies https://stackoverflow.com/a/64648870
run: npm ci --audit=false --include=dev --include=optional --include=peer
- name: Build package πŸ—οΈ
run: npm run build
- name: Publish package on NPM πŸ“¦
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}