Skip to content

1.4.0

1.4.0 #5

Workflow file for this run

name: Publish Package to NPM
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org/'
- name: Install latest npm
run: npm install -g npm@latest
- name: Install dependencies
run: |
if [ -f package-lock.json ]; then
npm ci
else
npm install
fi
- name: Build
run: npm run build
- name: Publish
run: npm publish --access public