Skip to content

πŸ‘·β€β™‚οΈ Build Release #2

πŸ‘·β€β™‚οΈ Build Release

πŸ‘·β€β™‚οΈ Build Release #2

Workflow file for this run

name: πŸ‘·β€β™‚οΈ Build Release
on:
workflow_run:
workflows: ["tests:unit"]
branches: [master]
types: [completed]
jobs:
cli-release:
name: πŸ‘·β€β™‚οΈ Build Release
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
strategy:
matrix:
node-version: [ 22.12.0 ]
permissions:
contents: write
pull-requests: write
id-token: write
steps:
- name: πŸ“₯ Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 🟒 Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: πŸ” Setup npm auth
run: |
echo "registry=https://registry.npmjs.org" >> ~/.npmrc
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Install the packages
run: pnpm i
- name: πŸ— Build packages
run: pnpm run build
- name: πŸš€ Publish build release
run: pnpm run build-release