diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 3e602da..a0fb4d0 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -38,12 +38,3 @@ jobs: - name: Run tests run: pnpm test - - - name: Create Release Pull Request or Publish - if: github.ref == 'refs/heads/main' - uses: changesets/action@v1 - with: - publish: pnpm run release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_SECRET }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7b474f8..0444611 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -7,6 +7,11 @@ on: concurrency: ${{ github.workflow }}-${{ github.ref }} +permissions: + id-token: write + contents: write + pull-requests: write + jobs: release: name: Release @@ -41,4 +46,3 @@ jobs: publish: pnpm run release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_SECRET }}