-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(general): Update changesets workflows (#1712)
Co-authored-by: Thibault Martinez <[email protected]>
- Loading branch information
1 parent
4311bd8
commit b90b83a
Showing
1 changed file
with
2 additions
and
10 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,25 +5,17 @@ on: | |
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
|
||
concurrency: ${{ github.workflow }}-${{ github.ref }} | ||
|
||
jobs: | ||
version: | ||
runs-on: self-hosted | ||
steps: | ||
- name: Generate token | ||
id: generate_token | ||
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # pin@v1 | ||
with: | ||
app_id: ${{ secrets.APP_ID }} | ||
private_key: ${{ secrets.APP_PRIVATE_KEY }} | ||
|
||
- name: checkout code repository | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 | ||
with: | ||
token: ${{ steps.generate_token.outputs.token }} | ||
fetch-depth: 0 | ||
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # [email protected] | ||
- name: Install Nodejs | ||
|
@@ -40,4 +32,4 @@ jobs: | |
# https://github.com/changesets/action#with-version-script | ||
version: pnpm changeset-version | ||
env: | ||
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |