diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index db206967..eec3bef5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,8 +1,5 @@ name: Release -permissions: - id-token: write - on: push: branches: @@ -15,14 +12,17 @@ jobs: release: name: Release runs-on: ubuntu-latest + permissions: + contents: write + 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 @@ -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 }}