1.0.1 #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 }} |