Skip to content

Commit

Permalink
Merge pull request #121 from woocommerce/update/108-nodejs-v20-github…
Browse files Browse the repository at this point in the history
…-actions-release-related

Upgrade the `merge-trunk-develop-pr`, `prepare-extension-release`, and `publish-extension-dev-build` actions to use Node.js v20
  • Loading branch information
eason9487 authored Apr 26, 2024
2 parents 19da941 + f61e6e1 commit 14e1521
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ jobs:
automerge_trunk:
runs-on: ubuntu-latest
steps:
- uses: woocommerce/grow/merge-trunk-develop-pr@actions-v1
- uses: woocommerce/grow/merge-trunk-develop-pr@actions-v2
```
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ runs:
steps:
- name: "Make the PR"
if: ${{ github.event.pull_request.merged == true && startsWith(github.head_ref, 'release/') && github.event.pull_request.user.login == 'github-actions[bot]' }}
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
const title = '${{github.event.pull_request.title}} - Merge `trunk` to `develop`';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: woocommerce/grow/prepare-extension-release@actions-v1
uses: actions/checkout@v4
- uses: woocommerce/grow/prepare-extension-release@actions-v2
with:
version: ${{ github.event.inputs.version }}
type: ${{ github.event.inputs.type }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ runs:
git push --set-upstream origin ${{ steps.release-vars.outputs.branch }}
- name: Create a pull request for the release
id: prepare-release-pr
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
const action_path = '${{ github.action_path }}';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
# build extension
- run: npm run build

- uses: woocommerce/grow/publish-extension-dev-build@actions-v1
- uses: woocommerce/grow/publish-extension-dev-build@actions-v2
with:
extension-asset-path: my-extension.zip

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ runs:
steps:
# Get unreleased notes
- id: unreleased-notes
uses: woocommerce/grow/get-release-notes@actions-v1
uses: woocommerce/grow/get-release-notes@actions-v2
with:
repo-token: ${{ github.token }}
tag-template: "{version}"

# Publish the build to GitHub
- uses: actions/github-script@v6
- uses: actions/github-script@v7
with:
# The main action inputs are not accessible within the "script" input of actions/github-script.
# So it needs to do forwarding.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import path from 'node:path';
/**
* Internal dependencies
*/
import handleActionErrors from '../../../utils/handle-action-errors';
import handleActionErrors from '../../../utils/handle-action-errors.js';

export default async ( { github, context, core, changelog, inputs } ) => {
const { repos, git } = github.rest;
Expand Down

0 comments on commit 14e1521

Please sign in to comment.