publish #13
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: publish | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
workflow_dispatch: | |
inputs: | |
npm-token: | |
description: npm token to be used to publish npm packages | |
required: false | |
jobs: | |
publish: | |
name: Bump package versions and publish to npm. | |
environment: CI | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: ./.github/actions/setup | |
- uses: actions/create-github-app-token@v1 | |
id: create_token | |
with: | |
app-id: ${{ vars.GH_APP_ID }} | |
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }} | |
- name: Create Release Pull or publish changes | |
uses: changesets/action@v1 | |
with: | |
commit: "chore: bump package versions" | |
publish: pnpm run release | |
title: "[Changesets] Bump package versions" | |
env: | |
GITHUB_TOKEN: ${{ steps.create_token.outputs.token }} | |
NPM_TOKEN: ${{ inputs.npm-token }} |