Skip to content

Commit

Permalink
Upgrade the publish-extension-dev-build action in the `github-actio…
Browse files Browse the repository at this point in the history
…ns` package to use Node.js v20.
  • Loading branch information
eason9487 committed Apr 25, 2024
1 parent 3f53ff2 commit f02d09e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
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 f02d09e

Please sign in to comment.