-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create github actions workflow for snapshot releases
- Loading branch information
Showing
2 changed files
with
29 additions
and
0 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
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,25 @@ | ||
name: Publish snapshot | ||
on: | ||
workflow_dispatch: | ||
jobs: | ||
build_packages: | ||
name: "Build and publish" | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install | ||
uses: ./.github/actions/install | ||
|
||
- name: Build packages | ||
run: pnpm build-packages | ||
|
||
# Bumps versions in package.json (see https://github.com/changesets/changesets/blob/main/docs/snapshot-releases.md) | ||
# The changes should not be committed to any branch: the "releases" are not part of the version history. | ||
- name: Version packages | ||
run: pnpm changeset version --snapshot dev | ||
|
||
- name: Publish packages | ||
run: pnpm publish -r --access public --tag dev --no-git-checks |