Skip to content

v0.1.0

v0.1.0 #1

Workflow file for this run

name: NPM Publish Workflow
on:
release:
types: [created]
jobs:
publish:
name: Publish release to NPM
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/what.js
permissions:
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install node
uses: actions/setup-node@v4
with:
node-version: "22"
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
- name: Build package
run: npm run build
- name: Publish package on NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}