Skip to content

Commit

Permalink
chore: update to node@18 and use pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
GreatWizard committed Oct 20, 2023
1 parent 1fddb41 commit 40c48be
Show file tree
Hide file tree
Showing 5 changed files with 3,338 additions and 3,036 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,16 @@ jobs:
name: Create release with assets
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
node-version: "16"
cache: "yarn"
- run: yarn install
- run: yarn build
version: 8
- uses: actions/setup-node@v3
with:
node-version: "18"
cache: "pnpm"
- run: pnpm install
- run: pnpm build
- run: echo "${{ github.ref }}" | sed "s/refs\/tags\//release_name=Release /" >> $GITHUB_ENV
- uses: softprops/action-gh-release@v1
env:
Expand Down
28 changes: 17 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,30 @@ jobs:
runs-on: ubuntu-latest
name: Lint
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
node-version: "16"
cache: "yarn"
- run: yarn install
- run: yarn lint
version: 8
- uses: actions/setup-node@v3
with:
node-version: "18"
cache: "pnpm"
- run: pnpm install
- run: pnpm lint

test:
runs-on: ubuntu-latest
name: Tests
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: "16"
cache: "yarn"
- uses: actions/setup-java@v2
node-version: "18"
cache: "pnpm"
- uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "17"
Expand Down
14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@
"pandoc"
],
"main": "index.js",
"bin": {
"reliure": "index.js"
},
"bin": "index.js",
"scripts": {
"lint": "eslint . --cache",
"lint:fix": "eslint . --fix",
Expand Down Expand Up @@ -71,7 +69,7 @@
"js-yaml": "^4.1.0",
"lodash.merge": "^4.6.2",
"node-fetch": "^2.6.6",
"pkg": "^5.3.3",
"pkg": "^5.8.1",
"replace": "^1.2.1",
"tar": "^6.1.11",
"unzipper": "^0.10.10"
Expand All @@ -87,16 +85,16 @@
"prettier": "^2.5.1"
},
"githubReleases": {
"w3c/epubcheck": "v4.2.6"
"w3c/epubcheck": "v5.1.0"
},
"engines": {
"node": ">=10.0.0"
},
"pkg": {
"targets": [
"node16-linux-x64",
"node16-macos-x64",
"node16-win-x64"
"node18-linux-x64",
"node18-macos-x64",
"node18-win-x64"
],
"assets": [
"./node_modules/figlet/fonts/Standard.flf"
Expand Down
Loading

0 comments on commit 40c48be

Please sign in to comment.