diff --git a/.github/workflows/release-please.yaml b/.github/workflows/release-please.yaml index 8056e635e..3c5bded2b 100644 --- a/.github/workflows/release-please.yaml +++ b/.github/workflows/release-please.yaml @@ -12,19 +12,19 @@ jobs: outputs: release_created: ${{ steps.release.outputs.release_created }} tag_name: ${{ steps.release.outputs.tag_name }} + patch: ${{ steps.release.outputs.patch }} steps: # Create/update release PR - - uses: google-github-actions/release-please-action@v3 + - uses: google-github-actions/release-please-action@v4 id: release with: - # Required input to specify the release type (node package). - release-type: node # Make sure we create the PR against the correct branch. - default-branch: ${{ github.ref_name }} + target-branch: ${{ github.ref_name }} # Use a special shaka-bot access token for releases. token: ${{ secrets.RELEASE_PLEASE_TOKEN }} - # Update these additional files containing version numbers. - extra-files: lib/player.js + # See also settings in these files: + manifest-file: .release-please-manifest.json + config-file: .release-please-config.json # The jobs below are all conditional on a release having been created by # someone merging the release PR. They all run in parallel. @@ -32,7 +32,7 @@ jobs: tag-main: runs-on: ubuntu-latest needs: release - if: needs.release.outputs.release_created && endsWith(needs.release.outputs.tag_name, '.0') == false + if: needs.release.outputs.release_created && needs.release.outputs.patch == '0' steps: - uses: actions/checkout@v4 with: @@ -113,14 +113,14 @@ jobs: fi - run: npm pack - - uses: svenstaro/upload-release-action@04733e069f2d7f7f0b4aebc4fbdbce8613b03ccd # 2.9.0 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - tag: ${{ needs.release.outputs.tag_name }} - file: shaka-player-*.tgz - file_glob: true - overwrite: true - make_latest: false + + - name: Attach to release + env: + GITHUB_TOKEN: ${{ secrets.RELEASE_PLEASE_TOKEN }} + run: | + gh release upload \ + ${{ needs.release.outputs.tag_name }} shaka-player-*.tgz \ + --clobber appspot: runs-on: ubuntu-latest @@ -179,7 +179,7 @@ jobs: auto-branch: runs-on: ubuntu-latest needs: release - if: needs.release.outputs.release_created && endsWith(needs.release.outputs.tag_name, '.0') + if: needs.release.outputs.release_created && needs.release.outputs.patch == '0' steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/update-screenshots.yaml b/.github/workflows/update-screenshots.yaml index 7b998612b..967ad9318 100644 --- a/.github/workflows/update-screenshots.yaml +++ b/.github/workflows/update-screenshots.yaml @@ -83,7 +83,7 @@ jobs: git push "$REMOTE" HEAD:"$BRANCH" - name: Debug - uses: mxschmitt/action-tmate@v3.6 + uses: mxschmitt/action-tmate@v3.17 with: limit-access-to-actor: true if: failure() diff --git a/.release-please-config.json b/.release-please-config.json new file mode 100644 index 000000000..bbe8e2869 --- /dev/null +++ b/.release-please-config.json @@ -0,0 +1,13 @@ +{ + "packages": { + ".": { + "include-component-in-tag": false, + "include-v-in-tag": true, + "component": "", + "release-type": "node", + "extra-files": [ + "lib/player.js" + ] + } + } +} diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 000000000..c0f9e2df1 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "4.7.0" +}