Skip to content

Version v1.16.0

Version v1.16.0 #65

Workflow file for this run

# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: Publish
on:
release:
types: [created]
permissions:
id-token: write # Required for OIDC
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
- run: npm ci
- run: npm run build --if-present
- run: npm test
- name: Verify no test files in npm pack
run: |
TEST_FILES=$(npm pack --dry-run 2>&1 | grep -c '__tests__' || true)
echo "Test files in pack: $TEST_FILES"
test "$TEST_FILES" -eq 0
publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '24'
registry-url: 'https://registry.npmjs.org/'
package-manager-cache: false
- run: npm ci
- run: npm publish