Skip to content

1.0.1

1.0.1 #9

Workflow file for this run

# The workflow to publish the package
name: Publish
# Controls when the workflow will run
on:
release:
types: [ created ] # Trigger on new releases
branches: [ main ] # Only on the main branch
jobs:
publish:
# Run on the latest Ubuntu
runs-on: ubuntu-latest
steps:
# Checkout the repository
- uses: actions/checkout@v4
# Set up Node.js with the LTS version
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: cd html && npm install
- name: Build project
run: cd html && npm run build
- name: Copy Documentation and License
run: cp README.md LICENSE html/dist
- name: Publish the package to npm
run: cd html && npm publish ./dist --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}