Skip to content

Merge pull request #50 from capply/change-event-handling #57

Merge pull request #50 from capply/change-event-handling

Merge pull request #50 from capply/change-event-handling #57

Workflow file for this run

name: publish
on:
push:
branches:
- "main"
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: "npm"
node-version: "20"
- name: Generate a token
id: generate-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.CAPPLY_BOT_APP_ID }}
private-key: ${{ secrets.CAPPLY_BOT_SECRET }}
- run: npm install
- run: npm run build
- name: Create Release Pull Request or Publish
id: changesets
uses: changesets/action@v1
with:
publish: npm run release
env:
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}