Skip to content

8.1.0

8.1.0 #117

Workflow file for this run

# When...
# - A commit is tagged with v#.#.#
# This workflow will...
# - Run tests using node
# - Publish a package to GitHub Packages
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: Publish a version
on:
push:
tags:
- "v*.*.*"
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- name: Install npm dependencies
run: npm ci --ignore-scripts
- name: Run validation
run: npm run validate
publish-npmjs:
needs: test
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- name: Install npm dependencies
run: npm ci --ignore-scripts
- name: Publish to npmjs
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}