Skip to content

Commit

Permalink
update node version
Browse files Browse the repository at this point in the history
  • Loading branch information
cardinalby committed Apr 1, 2024
1 parent 24c9924 commit f455422
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,23 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
node-version: [20.x]
steps:
- uses: actions/checkout@v2
- name: Extract branch name
id: extractBranch
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm install
run: npm ci
- name: Build
run: npm run build
- name: Pack
run: npm run pack
- name: Check packed js changes
id: packedJsStatus
run: echo ::set-output name=changes::$(git status ${{ env.PACKED_JS_PATH }} --porcelain)
run: echo "changes=$(git status ${{ env.PACKED_JS_PATH }} --porcelain)" >> $GITHUB_OUTPUT
- name: Commit packed js
id: commitPackedJs
if: steps.packedJsStatus.outputs.changes
Expand All @@ -47,4 +44,4 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
tags: true
force: true
branch: ${{ steps.extractBranch.outputs.branch }}
branch: ${{ github.head_ref || github.ref_name }}
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ outputs:
accessToken:
description: 'Fetched access token'
runs:
using: 'node16'
using: 'node20'
main: 'dist/index.js'
branding:
icon: 'lock'

0 comments on commit f455422

Please sign in to comment.