build: publish v2.4.0 #42
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
tags: | |
- 'v*' | |
workflow_dispatch: | |
permissions: | |
id-token: write | |
contents: write | |
packages: write | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install Tools | |
uses: ./.github/actions/install-tools | |
- name: Install Dependencies | |
uses: ./.github/actions/install-dependencies | |
- name: Build Package | |
uses: ./.github/actions/build-package | |
- name: Create GitHub Release | |
run: pnpm run ci:changelog | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Configure NPM Auth | |
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NODE_AUTH_TOKEN }}" > ~/.npmrc | |
- name: Clear Package JSON | |
run: pnpm run ci:clear | |
- name: Publish Root Package to NPM | |
run: npm publish --access public --no-git-checks --provenance |