Skip to content

Commit

Permalink
Merge pull request #60 from guardian/gb/node-18
Browse files Browse the repository at this point in the history
Run action with Node 18
  • Loading branch information
georgeblahblah authored Jul 26, 2023
2 parents 5a61414 + 0b31ab1 commit 9e85c59
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16.13.2
18.17.0
23 changes: 21 additions & 2 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,25 @@ inputs:
required: true
description: A list of files/directories to upload to Riff-Raff. An alternative to nesting `sources` inside the `config` input.

# When `actions/runner` supports Node 18 or higher, this could be a Javascript action.
# See https://github.com/guardian/actions-riff-raff/issues/33
runs:
using: "node16"
main: "dist/index.js"
using: composite
steps:
- name: Setup node
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
- name: Action
run: node ${{ github.action_path }}/dist/index.js
shell: bash
env:
INPUT_APP: ${{ inputs.app }}
INPUT_CONFIG: ${{ inputs.config }}
INPUT_CONFIGPATH: ${{ inputs.configPath }}
INPUT_PROJECTNAME: ${{ inputs.projectName }}
INPUT_DRYRUN: ${{ inputs.dryRun }}
INPUT_BUILDNUMBER: ${{ inputs.buildNumber }}
INPUT_BUILDNUMBEROFFSET: ${{ inputs.buildNumberOffset }}
INPUT_STAGINGDIR: ${{ inputs.stagingDir }}
INPUT_CONTENTDIRECTORIES: ${{ inputs.contentDirectories }}
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@guardian/tsconfig": "^0.2.0",
"@types/jest": "^27.4.1",
"@types/js-yaml": "^4.0.5",
"@types/node": "^20.3.3",
"@types/node": "18.17.0",
"jest": "^27.5.1",
"ts-jest": "^27.1.4",
"typescript": "^4.6.3"
Expand Down

0 comments on commit 9e85c59

Please sign in to comment.