Skip to content

Commit

Permalink
Create github actions workflow for snapshot releases
Browse files Browse the repository at this point in the history
  • Loading branch information
mbeckem committed Nov 20, 2024
1 parent 806b1cc commit 6a1a6c8
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
"version": false,
"tag": false
},
"snapshot": {
"useCalculatedVersion": true,
"prereleaseTemplate": "{tag}.{datetime}"
},
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
"onlyUpdatePeerDependentsWhenOutOfRange": true
}
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/publish-snapshot.yml
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

0 comments on commit 6a1a6c8

Please sign in to comment.