Skip to content

v8.3.0

v8.3.0 #164

Workflow file for this run

name: Publish
on:
release:
types: [published]
jobs:
npm:
name: NPM
runs-on: ubuntu-latest
environment: NPM Release Publishing
steps:
- uses: actions/checkout@6d193bf28034eafb982f37bd894289fe649468fc
- run: corepack enable pnpm
- uses: actions/setup-node@26961cf329f22f6837d5f54c3efd76b480300ace
with:
node-version-file: ".nvmrc"
cache: pnpm
- uses: actions/github-script@660ec11d825b714d112a6bb9727086bc2cc500b2
id: version
with:
script: |
const semver = context.ref.replace('refs/tags/v', '')
if (semver.match(/^[0-9]+\.[0-9]+\.[0-9]+$/)){
return semver
}
throw new Error('not semver')
result-encoding: string
- run: pnpm install --frozen-lockfile
- run: pnpm build
- name: Version
run: |
node ./scripts/version.js --version ${{ steps.version.outputs.result }}
- name: Publish
run: |
npm config set //registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN
npm run publish
env:
NPM_AUTH_TOKEN: ${{ secrets.ORDZAAR_NPM_BOT }}