Skip to content

Import v1.0.19

Import v1.0.19 #24

Workflow file for this run

name: Publish Release to npm
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
environment: GitHub Publish
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 6.0.2
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # 6.3.0
with:
node-version: "22"
registry-url: 'https://registry.npmjs.org'
- run: npm install -g npm@11.11
- run: npm ci
- run: npm test
- if: ${{ github.event.release.tag_name != '' && env.NPM_PUBLISH_TAG != '' }}
run: npm publish --provenance --access=public --tag=${{ env.NPM_PUBLISH_TAG }}
env:
NPM_PUBLISH_TAG: ${{ contains(github.event.release.tag_name, '-beta.') && 'beta' || 'latest' }}