-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6c40aeb
commit f9adc4a
Showing
4 changed files
with
53 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# https://docs.github.com/en/actions/using-workflows/about-workflows | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# https://github.com/actions/checkout | ||
- name: Checkout Repo | ||
uses: actions/checkout@v2 | ||
|
||
# https://github.com/actions/setup-node | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.x | ||
|
||
# https://github.com/pnpm/action-setup | ||
- name: Setup Pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 7.x | ||
|
||
# https://pnpm.io/zh/cli/install#--frozen-lockfile | ||
- name: Install Dependencies | ||
run: pnpm install --frozen-lockfile | ||
|
||
# https://github.com/changesets/action | ||
- name: Create Release Pull Request or Publish to npm | ||
uses: changesets/action@v1 | ||
with: | ||
publish: pnpm release | ||
version: pnpm changeset version | ||
commit: 'chore: version packages' | ||
env: | ||
NPM_TOKEN: ${{ secrets.AUTOMATION_NPM_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.PUBLIC_GITHUB_TOKEN }} |
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
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
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