feat: update main in record hook plugin package.json (#706) #538
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: Changesets | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
cache: npm | |
- name: Install dependencies | |
run: npm ci | |
- name: Get Release token | |
id: release_token | |
uses: peter-murray/workflow-application-token-action@v3 | |
with: | |
application_id: ${{ secrets.RELEASE_APP_ID }} | |
application_private_key: ${{ secrets.RELEASE_APP_KEY }} | |
- name: Create Release Pull Request or Publish to npm | |
id: changesets | |
uses: changesets/action@v1 | |
with: | |
commit: 'chore: update versions' | |
title: 'chore: update versions' | |
publish: npm run release | |
env: | |
GITHUB_TOKEN: ${{ steps.release_token.outputs.token }} | |
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} |