Skip to content

Commit

Permalink
Update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bakerkretzmar committed Feb 20, 2024
1 parent b362a42 commit 591ebdb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:
- uses: actions/checkout@v4
# Set up .npmrc file to publish to npm
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org
Expand All @@ -24,13 +24,13 @@ jobs:
# Abort if the version in the package.json file (prefixed with 'v') doesn't match the tag name of the release
- name: Check package.json version against tag name
if: format('v{0}', steps.package-json-version.outputs.version) != github.event.release.tag_name
uses: actions/github-script@v3
uses: actions/github-script@v7
with:
script: core.setFailed('Release tag does not match package.json version!')
# Abort if this is a pre-release and the version in the package.json file doesn't contain a '-' to indicate that (e.g. v2.0.0-beta.1), or vice-versa
- name: Check package.json version against pre-release
if: contains(steps.package-json-version.outputs.version, '-') != github.event.release.prerelease
uses: actions/github-script@v3
uses: actions/github-script@v7
with:
script: core.setFailed('Stability of release tag does not match package.json version!')
# If this is a pre-release, publish it to NPM under the 'next' tag (default is 'latest')
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
pull_request:
paths-ignore: ['dist/**', '*.md']
push:
branches: [main, next, ci]
branches: [2.x, main, ci]
paths-ignore: ['dist/**', '*.md']
concurrency:
group: ${{ github.ref_name }}
Expand All @@ -30,7 +30,7 @@ jobs:
with:
php-version: ${{ matrix.php }}
extensions: fileinfo
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
Expand Down

0 comments on commit 591ebdb

Please sign in to comment.