Skip to content

ci: update release flow #3

ci: update release flow

ci: update release flow #3

Workflow file for this run

name: Release
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
config-file: release-please-config.json
- name: Checkout
if: ${{ steps.release.outputs.release_created }}
uses: actions/checkout@v4
- name: Setup Node.js
if: ${{ steps.release.outputs.release_created }}
uses: actions/setup-node@v4
with:
node-version: v20.x
registry-url: https://registry.npmjs.org
cache: npm
- name: Install dependencies
if: ${{ steps.release.outputs.release_created }}
run: npm ci
- name: Audit signatures
if: ${{ steps.release.outputs.release_created }}
run: npm audit signatures
- name: Build
if: ${{ steps.release.outputs.release_created }}
run: npm run build
- name: Publish to registry
if: ${{ steps.release.outputs.release_created }}
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
run: npm publish --access public