Skip to content

Commit

Permalink
Update used packages and Node version (#41)
Browse files Browse the repository at this point in the history
* Update entire package

* add temp checkout

* update action version

* remove husky from scripts

* update package.json requirements
  • Loading branch information
joaquimcavalcanti authored Apr 20, 2023
1 parent fb504cf commit 609d901
Show file tree
Hide file tree
Showing 15 changed files with 9,884 additions and 4,167 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 12
node-version: 16
cache: 'npm'
- name: Install
run: npm ci
Expand All @@ -20,11 +20,12 @@ jobs:
run: npm run build
- name: Commit build
if: github.ref == 'refs/heads/master'
uses: endbug/add-and-commit@v4
uses: EndBug/add-and-commit@v9
with:
add: build
force: true
message: Add build code
ref: v1
add: 'build'
message: 'Add build code'
tag: 'v2 --force'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout
uses: actions/checkout@v3
4 changes: 2 additions & 2 deletions .github/workflows/release-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.branch }}
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: 16
cache: npm
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: npm
Expand Down
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run pre-commit
npx lint-staged
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
build
node_modules
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Changelog

## 2.0.0 (Apr 20, 2023)
Set action node version to 16
Update `EndBug/add-and-commit` to V9
Update `@actions/core` to `1.10.0`
Update `@actions/github` to `5.0.0`
Update `@types/node` to `16.11.7`
Update `@vercel/ncc` to `0.36.1`
Update `eslint` to `8.34.0`
Update `eslint-config-neo` to `0.7.0`
Update `husky` to `8.0.3`
Update `lint-staged` to `13.2.1`
Update `prettier` to `2.8.7`
Update `typescript` to `4.7.4`

## 1.5.0 (Feb 16, 2023)

Changed the order of checks to do title last as the other checks can impact it by changing the title.
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ inputs:
required: false

runs:
using: 'node12'
using: 'node16'
main: 'build/index.js'

branding:
Expand Down
10 changes: 10 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
clearMocks: true,
moduleFileExtensions: ['js', 'ts'],
testEnvironment: 'node',
testMatch: ['**/*.test.ts'],
transform: {
'^.+\\.ts$': 'ts-jest',
},
verbose: true,
};
Loading

0 comments on commit 609d901

Please sign in to comment.