diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index c2bb4fb..1354704 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -8,9 +8,16 @@ name: release-please jobs: release-please: runs-on: ubuntu-latest + + permissions: + # Write to "contents" is needed to create a release + contents: write + # Write to pull-requests is needed to create and update the release PR + pull-requests: write + steps: # Create/update release PR - - uses: google-github-actions/release-please-action@v3 + - uses: googleapis/release-please-action@v4 id: release with: release-type: node @@ -23,9 +30,9 @@ jobs: persist-credentials: false if: ${{ steps.release.outputs.release_created }} - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v4 with: - node-version: 12 + node-version: 22 registry-url: 'https://registry.npmjs.org' if: ${{ steps.release.outputs.release_created }} @@ -40,11 +47,9 @@ jobs: - run: npm pack if: ${{ steps.release.outputs.release_created }} - - uses: svenstaro/upload-release-action@483c1e56f95e88835747b1c7c60581215016cbf2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - tag: ${{ steps.release.outputs.tag_name }} - file: trace-anything-*.tgz - file_glob: true - overwrite: true + - name: Attach files to release + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh release upload --clobber "${{ steps.release.outputs.tag_name }}" trace-anything-*.tgz if: ${{ steps.release.outputs.release_created }}