Skip to content

16.1.0

16.1.0 #126

Workflow file for this run

name: Publish Release
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Node.js 22.x
uses: actions/setup-node@v1
with:
node-version: 22.x
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: npm install
- name: Build library and website
run: npm run build
- name: Test library
run: npm run test
- name: Test library accessibility
run: npm run test:accessibility
- name: Publish RELEASE to npm
run: |
sed -i "s#\"version\": \".*\"#\"version\": \"${TAG_NAME}\"#" ./packages/lib/package.json
cd packages/lib
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
TAG_NAME: ${{ github.event.release.tag_name }}