Skip to content

Grant pr permission to release action #2

Grant pr permission to release action

Grant pr permission to release action #2

Workflow file for this run

name: Release
on:
push:
branches:
- master
- next
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: pnpm/action-setup@v4
with:
version: latest
- name: Install Dependencies
run: pnpm i
- name: Create Release Pull Request or Publish to npm
uses: changesets/action@v1
with:
publish: pnpm changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}