Skip to content

Commit

Permalink
ci: fix release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
GarthDB committed Mar 14, 2024
1 parent 342c9ca commit 60b33c9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: Release

permissions:
id-token: write

on:
push:
branches:
Expand All @@ -15,14 +12,17 @@ jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: moonrepo/setup-toolchain@v0
- uses: pnpm/action-setup@v3
with:
auto-install: true
- run: moon run :build --query "projectSource~packages/*"
version: 8
- run: pnpm i
- name: Publish
id: changesets
uses: changesets/action@v1
Expand All @@ -31,5 +31,5 @@ jobs:
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.MOON_GH_TOKEN }}
NPM_TOKEN: ${{ secrets.ADOBE_BOT_NPM_TOKEN }}

0 comments on commit 60b33c9

Please sign in to comment.