Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade the merge-trunk-develop-pr, prepare-extension-release, and publish-extension-dev-build actions to use Node.js v20 #121

Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,15 @@ runs:
steps:
# Get unreleased notes
- id: unreleased-notes
uses: woocommerce/grow/get-release-notes@actions-v1
# uses: woocommerce/grow/get-release-notes@actions-v2
# Temporarily using test build
uses: woocommerce/grow/get-release-notes@update/108-nodejs-v20-github-actions-get-plugin-releases-test-build
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
Loading