Try using github token instead #11
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: Release | |
on: | |
push: | |
branches: | |
- main | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Create Github Token as Changesets-Bot | |
id: create_token | |
uses: tibdex/github-app-token@v2 | |
with: | |
app_id: ${{ secrets.CHANGESETS_RELEASE_APP_ID }} | |
private_key: ${{ secrets.CHANGESETS_RELEASE_PRIVATE_KEY }} | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Setup pnpm and node | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: "pnpm" | |
- name: Install Dependencies | |
run: pnpm install | |
- name: Build package | |
run: pnpm build | |
- name: Create Release Pull Request | |
uses: changesets/action@v1 | |
with: | |
commit: "chore(release): Release latest changesets" | |
title: "chore(release): Release latest changesets" | |
createGithubReleases: true | |
publish: pnpm changeset publish | |
env: | |
GITHUB_TOKEN: ${{ steps.create_token.outputs.token }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |