Skip to content

⚡ Release

⚡ Release #17

Workflow file for this run

name: ⚡ Release
on:
workflow_run:
workflows: ['⚡ Integration checks']
branches: [main]
types:
- completed
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: write
pull-requests: write
jobs:
publish:
name: 🛩️ Release & Publish
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: 🛰️ Release please
uses: googleapis/[email protected]
id: release
with:
release-type: node
config-file: "release-please/config.json"
manifest-file: "release-please/manifest.json"
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}
- name: 📦 Setup pnpm
uses: pnpm/action-setup@v4
if: ${{ steps.release.outputs.release_created }}
- name: ⎔ Setup node
uses: actions/setup-node@v4
if: ${{ steps.release.outputs.release_created }}
with:
node-version-file: '.node-version'
registry-url: 'https://registry.npmjs.org'
- name: 📥 Install deps
if: ${{ steps.release.outputs.release_created }}
run: pnpm install --frozen-lockfile
- name: ⚙️ Building package
if: ${{ steps.release.outputs.release_created }}
run: pnpm build
- name: 🚀 Publish package
id: publish
if: ${{ steps.release.outputs.release_created }}
run: npm publish ./dist --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}