Skip to content

Commit 22a67fe

Browse files
committed
Merge branch 'dev' into releases/v4
2 parents 881db53 + bbb99d2 commit 22a67fe

12 files changed

+229
-225
lines changed

.github/workflows/build.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
- uses: actions/setup-node@v4
2020
with:
21-
node-version-file: '.nvmrc'
21+
node-version-file: '.node-version'
2222
registry-url: 'https://registry.npmjs.org'
2323

2424
- name: Install Yarn
@@ -32,7 +32,7 @@ jobs:
3232
yarn test
3333
3434
- name: Uploade CodeCov Report
35-
uses: codecov/codecov-action@v4.5.0
35+
uses: codecov/codecov-action@v4.6.0
3636
with:
3737
token: ${{ secrets.CODECOV_TOKEN }}
3838

@@ -44,7 +44,7 @@ jobs:
4444

4545
- uses: actions/setup-node@v4
4646
with:
47-
node-version-file: '.nvmrc'
47+
node-version-file: '.node-version'
4848
registry-url: 'https://registry.npmjs.org'
4949

5050
- name: Install Yarn
@@ -84,7 +84,7 @@ jobs:
8484

8585
- uses: actions/setup-node@v4
8686
with:
87-
node-version-file: '.nvmrc'
87+
node-version-file: '.node-version'
8888
registry-url: 'https://registry.npmjs.org'
8989

9090
- name: Download artifact

.github/workflows/integration.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ jobs:
178178

179179
- uses: actions/setup-node@v4
180180
with:
181-
node-version-file: '.nvmrc'
181+
node-version-file: '.node-version'
182182

183183
- name: Build and Deploy
184184
uses: JamesIves/github-pages-deploy-action@v4

.github/workflows/production.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
- uses: actions/setup-node@v4
1919
with:
20-
node-version-file: '.nvmrc'
20+
node-version-file: '.node-version'
2121
registry-url: 'https://registry.npmjs.org'
2222

2323
- name: Install Yarn

.github/workflows/version.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
# Setup .npmrc file to publish to npm
3131
- uses: actions/setup-node@v4
3232
with:
33-
node-version-file: '.nvmrc'
33+
node-version-file: '.node-version'
3434
registry-url: 'https://registry.npmjs.org'
3535
scope: '@jamesives'
3636

@@ -61,7 +61,7 @@ jobs:
6161
# Setup .npmrc file to publish to GitHub Packages
6262
- uses: actions/setup-node@v4
6363
with:
64-
node-version-file: '.nvmrc'
64+
node-version-file: '.node-version'
6565
registry-url: 'https://npm.pkg.github.com'
6666
scope: '@jamesives'
6767

.node-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v22.11.0

.nvmrc

-1
This file was deleted.

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ When contributing to this repository, please first discuss the change you wish t
1515

1616
## Deploying 🚚
1717

18-
In order to deploy and test your own fork of this action, you must commit the `node_modules` dependencies. Be sure to run `nvm use` before installing any dependencies. You can learn more about nvm [here](https://github.com/nvm-sh/nvm/blob/master/README.md).
18+
In order to deploy and test your own fork of this action, you must commit the `node_modules` dependencies. Be sure to switch to the Node version listed in the [.node-version](./.node-version) file first.
1919

2020
To do this you can follow the instructions below:
2121

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ Maintenance of this project is made possible by all the <a href="https://github.
4343
</p>
4444

4545
<p align="center">
46-
<!-- premium --><a href="https://github.com/github"><img src="https://github.com/github.png" width="80px" alt="github" /></a>&nbsp;&nbsp;<a href="https://github.com/annegentle"><img src="https://github.com/annegentle.png" width="80px" alt="annegentle" /></a>&nbsp;&nbsp;<!-- premium -->
46+
<!-- premium --><a href="https://github.com/github"><img src="https://github.com/github.png" width="80px" alt="github" /></a>&nbsp;&nbsp;<a href="https://github.com/annegentle"><img src="https://github.com/annegentle.png" width="80px" alt="annegentle" /></a>&nbsp;&nbsp;<a href="https://github.com/tonjohn"><img src="https://github.com/tonjohn.png" width="80px" alt="tonjohn" /></a>&nbsp;&nbsp;<!-- premium -->
4747
</p>
4848

4949
<p align="center">
50-
<!-- sponsors --><a href="https://github.com/Chooksta69"><img src="https://github.com/Chooksta69.png" width="50px" alt="Chooksta69" /></a>&nbsp;&nbsp;<a href="https://github.com/MattWillFlood"><img src="https://github.com/MattWillFlood.png" width="50px" alt="MattWillFlood" /></a>&nbsp;&nbsp;<a href="https://github.com/jonathan-milan-pollock"><img src="https://github.com/jonathan-milan-pollock.png" width="50px" alt="jonathan-milan-pollock" /></a>&nbsp;&nbsp;<a href="https://github.com/raoulvdberge"><img src="https://github.com/raoulvdberge.png" width="50px" alt="raoulvdberge" /></a>&nbsp;&nbsp;<a href="https://github.com/robjtede"><img src="https://github.com/robjtede.png" width="50px" alt="robjtede" /></a>&nbsp;&nbsp;<a href="https://github.com/hadley"><img src="https://github.com/hadley.png" width="50px" alt="hadley" /></a>&nbsp;&nbsp;<a href="https://github.com/kevinchalet"><img src="https://github.com/kevinchalet.png" width="50px" alt="kevinchalet" /></a>&nbsp;&nbsp;<a href="https://github.com/Yousazoe"><img src="https://github.com/Yousazoe.png" width="50px" alt="Yousazoe" /></a>&nbsp;&nbsp;<a href="https://github.com/planetoftheweb"><img src="https://github.com/planetoftheweb.png" width="50px" alt="planetoftheweb" /></a>&nbsp;&nbsp;<a href="https://github.com/melton1968"><img src="https://github.com/melton1968.png" width="50px" alt="melton1968" /></a>&nbsp;&nbsp;<a href="https://github.com/szepeviktor"><img src="https://github.com/szepeviktor.png" width="50px" alt="szepeviktor" /></a>&nbsp;&nbsp;<a href="https://github.com/sckott"><img src="https://github.com/sckott.png" width="50px" alt="sckott" /></a>&nbsp;&nbsp;<a href="https://github.com/provinzkraut"><img src="https://github.com/provinzkraut.png" width="50px" alt="provinzkraut" /></a>&nbsp;&nbsp;<a href="https://github.com/electrovir"><img src="https://github.com/electrovir.png" width="50px" alt="electrovir" /></a>&nbsp;&nbsp;<a href="https://github.com/Griefed"><img src="https://github.com/Griefed.png" width="50px" alt="Griefed" /></a>&nbsp;&nbsp;<a href="https://github.com/MontezumaIves"><img src="https://github.com/MontezumaIves.png" width="50px" alt="MontezumaIves" /></a>&nbsp;&nbsp;<!-- sponsors -->
50+
<!-- sponsors --><a href="https://github.com/Chooksta69"><img src="https://github.com/Chooksta69.png" width="50px" alt="Chooksta69" /></a>&nbsp;&nbsp;<a href="https://github.com/MattWillFlood"><img src="https://github.com/MattWillFlood.png" width="50px" alt="MattWillFlood" /></a>&nbsp;&nbsp;<a href="https://github.com/jonathan-milan-pollock"><img src="https://github.com/jonathan-milan-pollock.png" width="50px" alt="jonathan-milan-pollock" /></a>&nbsp;&nbsp;<a href="https://github.com/raoulvdberge"><img src="https://github.com/raoulvdberge.png" width="50px" alt="raoulvdberge" /></a>&nbsp;&nbsp;<a href="https://github.com/robjtede"><img src="https://github.com/robjtede.png" width="50px" alt="robjtede" /></a>&nbsp;&nbsp;<a href="https://github.com/hadley"><img src="https://github.com/hadley.png" width="50px" alt="hadley" /></a>&nbsp;&nbsp;<a href="https://github.com/kevinchalet"><img src="https://github.com/kevinchalet.png" width="50px" alt="kevinchalet" /></a>&nbsp;&nbsp;<a href="https://github.com/Yousazoe"><img src="https://github.com/Yousazoe.png" width="50px" alt="Yousazoe" /></a>&nbsp;&nbsp;<a href="https://github.com/planetoftheweb"><img src="https://github.com/planetoftheweb.png" width="50px" alt="planetoftheweb" /></a>&nbsp;&nbsp;<a href="https://github.com/melton1968"><img src="https://github.com/melton1968.png" width="50px" alt="melton1968" /></a>&nbsp;&nbsp;<a href="https://github.com/szepeviktor"><img src="https://github.com/szepeviktor.png" width="50px" alt="szepeviktor" /></a>&nbsp;&nbsp;<a href="https://github.com/sckott"><img src="https://github.com/sckott.png" width="50px" alt="sckott" /></a>&nbsp;&nbsp;<a href="https://github.com/provinzkraut"><img src="https://github.com/provinzkraut.png" width="50px" alt="provinzkraut" /></a>&nbsp;&nbsp;<a href="https://github.com/electrovir"><img src="https://github.com/electrovir.png" width="50px" alt="electrovir" /></a>&nbsp;&nbsp;<a href="https://github.com/Griefed"><img src="https://github.com/Griefed.png" width="50px" alt="Griefed" /></a>&nbsp;&nbsp;<a href="https://github.com/MontezumaIves"><img src="https://github.com/MontezumaIves.png" width="50px" alt="MontezumaIves" /></a>&nbsp;&nbsp;<a href="https://github.com/wylie"><img src="https://github.com/wylie.png" width="50px" alt="wylie" /></a>&nbsp;&nbsp;<!-- sponsors -->
5151
</p>
5252

5353
## Getting Started :airplane:

eslint.config.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default tseslint.config(
1717
},
1818
rules: {
1919
'jest/no-conditional-expect': 'off',
20-
'@typescript-eslint/ban-types': [
20+
'@typescript-eslint/no-restricted-types': [
2121
'error',
2222
{
2323
types: {

package.json

+11-11
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@jamesives/github-pages-deploy-action",
33
"description": "GitHub action for building a project and deploying it to GitHub pages.",
44
"author": "James Ives <iam@jamesiv.es> (https://jamesiv.es)",
5-
"version": "4.6.7",
5+
"version": "4.6.8",
66
"license": "MIT",
77
"main": "lib/lib.js",
88
"types": "lib/lib.d.ts",
@@ -35,27 +35,27 @@
3535
"deployment"
3636
],
3737
"dependencies": {
38-
"@actions/core": "1.10.1",
38+
"@actions/core": "1.11.1",
3939
"@actions/exec": "1.1.1",
4040
"@actions/github": "6.0.0",
4141
"@actions/io": "1.1.3",
4242
"@eslint/js": "^9.0.0",
43-
"typescript-eslint": "^7.7.0"
43+
"typescript-eslint": "^8.13.0"
4444
},
4545
"devDependencies": {
46-
"@types/jest": "29.5.12",
47-
"@types/node": "20.14.11",
48-
"@typescript-eslint/eslint-plugin": "7.16.1",
49-
"@typescript-eslint/parser": "7.16.1",
50-
"eslint": "9.7.0",
46+
"@types/jest": "29.5.14",
47+
"@types/node": "22.9.0",
48+
"@typescript-eslint/eslint-plugin": "8.13.0",
49+
"@typescript-eslint/parser": "8.13.0",
50+
"eslint": "9.14.0",
5151
"eslint-config-prettier": "9.1.0",
52-
"eslint-plugin-jest": "28.6.0",
52+
"eslint-plugin-jest": "28.9.0",
5353
"eslint-plugin-prettier": "5.2.1",
5454
"jest": "29.7.0",
5555
"jest-circus": "29.7.0",
5656
"prettier": "3.3.3",
5757
"rimraf": "6.0.1",
58-
"ts-jest": "29.2.3",
59-
"typescript": "5.5.3"
58+
"ts-jest": "29.2.5",
59+
"typescript": "5.6.3"
6060
}
6161
}

src/worktree.ts

+8
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ export async function generateWorktree(
9797
action.silent
9898
)
9999
} catch (error) {
100+
if (!action.silent) {
101+
console.error(error)
102+
}
103+
100104
info(
101105
'Error encountered while checking out branch. Attempting to continue with a new branch name.'
102106
)
@@ -111,6 +115,10 @@ export async function generateWorktree(
111115
action.silent
112116
)
113117
} catch (error) {
118+
if (!action.silent) {
119+
console.error(error)
120+
}
121+
114122
info('Unable to track the origin branch…')
115123

116124
checkout = new GitCheckout(branchName)

0 commit comments

Comments
 (0)