Skip to content

Commit

Permalink
Update changesets workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
clauderic committed Jun 11, 2024
1 parent 0d5133a commit 20760e2
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/release-experimental.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,15 @@ on:
- experimental
jobs:
release:
name: ${{ matrix.channel }}
runs-on: ubuntu-latest
environment: production
strategy:
max-parallel: 1
matrix:
channel:
- current
- beta
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -22,7 +29,18 @@ jobs:
- uses: oven-sh/setup-bun@v1
- run: bun install && bun run build

- name: Create Release Pull Request or Publish to npm
if: matrix.channel == 'current'
uses: changesets/action@master
with:
publish: npm run release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish packages on npm with @beta tag
if: matrix.channel == 'beta'
run: |
npm run version-packages:beta
npm run release:beta
Expand Down

0 comments on commit 20760e2

Please sign in to comment.