add scale #109
This file contains hidden or 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 Please | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write # to create release commit (googleapis/release-please-action) | |
pull-requests: write # to create release PR (googleapis/release-please-action) | |
issues: write # to create labels (googleapis/release-please-action) | |
id-token: write | |
jobs: | |
release-please: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: googleapis/release-please-action@v4 | |
id: release | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
command: manifest | |
config-file: release-please-config.json | |
manifest-file: .release-please-manifest.json | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
if: ${{ steps.release.outputs.release_created }} | |
with: | |
submodules: 'recursive' | |
lfs: true | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
if: ${{ steps.release.outputs.release_created }} | |
with: | |
node-version: 22 | |
registry-url: 'https://registry.npmjs.org' | |
- name: Install dependencies | |
run: npm ci | |
if: ${{ steps.release.outputs.release_created }} | |
- name: Build packages | |
run: npm run build | |
if: ${{ steps.release.outputs.release_created }} | |
- name: Publish to npm | |
if: ${{ steps.release.outputs.release_created }} | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: npm publish --provenance --access public |