Skip to content

v4.5.2

v4.5.2 #278

Workflow file for this run

name: Publish to NPM
on:
release:
types:
- published
permissions:
id-token: write # Required for OIDC trusted publishing
contents: read
jobs:
ci:
uses: ./.github/workflows/check-pull-request.yml
secrets: inherit
with:
skip-sonar: true
publish:
needs: ci
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.release.tag_name }}
- uses: actions/setup-node@v5
with:
node-version-file: .nvmrc
registry-url: 'https://registry.npmjs.org'
cache: 'npm'
- name: Cache webpack and build artifacts
uses: actions/cache@v4
with:
path: |
node_modules/.cache/webpack
node_modules/.cache/terser-webpack-plugin
key: ${{ runner.os }}-build-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('webpack.*.mjs', 'babel.config.json') }}
restore-keys: |
${{ runner.os }}-build-${{ hashFiles('**/package-lock.json') }}-
${{ runner.os }}-build-
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Publish
run: ./scripts/publish-package.sh "${{ github.event.release.tag_name }}" "${{ github.event.release.prerelease }}"