Skip to content

v1.7.2

v1.7.2 #14

Workflow file for this run

---
name: "Publish to NPM"
on:
release:
types:
- "published"
permissions:
contents: read
id-token: write
jobs:
publish:
name: Publish to NPM
runs-on: ubuntu-latest
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2
with:
egress-policy: audit
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version: 22.14.0
registry-url: "https://registry.npmjs.org"
package-manager-cache: false
- name: Install npm with trusted publishing support
run: npm install --global npm@^11.5.1
- name: Install dependencies
run: yarn install --frozen-lockfile --non-interactive
- name: Build
run: yarn build
- name: Run tests
run: yarn run-instance
- name: Write release version
run: |
VERSION=${GITHUB_REF_NAME#v}
echo Version: $VERSION
echo "VERSION=$VERSION" >> $GITHUB_ENV
- run: "npm version ${VERSION} --no-git-tag-version --allow-same-version"
- name: Publish to NPM
run: npm publish --access public