Skip to content

Commit 26ca227

Browse files
Merge pull request #24 from shiftcode/upgrade-node-to-v20
Update node to version 20
2 parents bc03570 + 8269853 commit 26ca227

File tree

12 files changed

+31528
-13694
lines changed

12 files changed

+31528
-13694
lines changed

.eslintrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ extends:
55
- "plugin:@typescript-eslint/eslint-recommended"
66
parser: "@typescript-eslint/parser"
77
parserOptions:
8-
ecmaVersion: 2021
8+
ecmaVersion: 2022
99
sourceType: module
1010
plugins:
1111
- "@typescript-eslint"

.github/workflows/test.yml

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,28 @@ jobs:
99
test:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
13-
- name: Install dependencies
14-
run: npm ci
15-
- name: Build
16-
run: npm run build
17-
- name: Check for Execution
18-
uses: ./
19-
with:
20-
skipOnCommitMsg: "sample"
21-
ghToken: ${{secrects.GH_TOKEN_3}}
22-
- name: Some Job
23-
run: echo "sample"
12+
- name: Checkout source
13+
uses: actions/[email protected]
14+
- name: Install Node (v20)
15+
id: node-install
16+
uses: actions/[email protected]
17+
with:
18+
node-version: 20.11
19+
cache: 'npm'
20+
# allow packages inside this repo to consume from our private npm registry
21+
- name: Authenticate against NPM
22+
run: |
23+
npm config set //npm.pkg.github.com/:_authToken=$GH_TOKEN
24+
npm config list
25+
env:
26+
GH_TOKEN: ${{ secrets.GH_TOKEN_PKG_REGISTRY_READ }}
27+
- name: Install dependencies
28+
run: npm ci
29+
- name: Build
30+
run: npm run build
31+
- name: Check for Execution
32+
uses: ./
33+
with:
34+
skipOnCommitMsg: "sample"
35+
- name: Some Job
36+
run: echo "sample"

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/.idea/
22
node_modules/
3-
3+
/dist/package.json
44
# Rest pulled from https://github.com/github/gitignore/blob/master/Node.gitignore
55
# Logs
66
logs

.husky/commit-msg

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
42
npx commitlint -e $1

.husky/pre-commit

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
4-
npx lint-staged && npm run build && git add dist/*
1+
npx lint-staged && npm run build && git add dist/*

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20.11.1

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ outputs:
1515
shouldExecute:
1616
description: 'boolean value. True if the commit message contains the string provided in skipOnCommitMsg input param, false otherwise.'
1717
runs:
18-
using: 'node16'
18+
using: 'node20'
1919
main: 'dist/index.js'

0 commit comments

Comments
 (0)