Skip to content

Commit 44a2b44

Browse files
authored
feat: bump node12 to node16 (#791)
* feat: bump node12 to node16 * deps: bump node from 12.22.10 to 16.18.0 * deps: bump @actions/core from 1.6.0 to 1.10.0 * chore: remove dev docker image, Makefile * docs: replace set-output with GITHUB_OUTPUT * docs: bump actions/cache from v2 to v3
1 parent 2bef62f commit 44a2b44

File tree

9 files changed

+56
-162
lines changed

9 files changed

+56
-162
lines changed

.github/workflows/dev-image.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
12.22.10
1+
16.18.0

Dockerfile

Lines changed: 0 additions & 56 deletions
This file was deleted.

Makefile

Lines changed: 0 additions & 10 deletions
This file was deleted.

README.md

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -504,17 +504,15 @@ jobs:
504504
id: prepare_tag
505505
if: startsWith(github.ref, 'refs/tags/')
506506
run: |
507-
TAG_NAME="${GITHUB_REF##refs/tags/}"
508-
echo "::set-output name=tag_name::${TAG_NAME}"
509-
echo "::set-output name=deploy_tag_name::deploy-${TAG_NAME}"
507+
echo "DEPLOY_TAG_NAME=deploy-${TAG_NAME}" >> "${GITHUB_OUTPUT}"
510508
511509
- name: Deploy
512510
uses: peaceiris/actions-gh-pages@v3
513511
with:
514512
github_token: ${{ secrets.GITHUB_TOKEN }}
515513
publish_dir: ./public
516-
tag_name: ${{ steps.prepare_tag.outputs.deploy_tag_name }}
517-
tag_message: 'Deployment ${{ steps.prepare_tag.outputs.tag_name }}'
514+
tag_name: ${{ steps.prepare_tag.outputs.DEPLOY_TAG_NAME }}
515+
tag_message: 'Deployment ${{ github.ref_name }}'
518516
```
519517

520518
Commands on a local machine.
@@ -698,7 +696,7 @@ jobs:
698696
node-version: '14'
699697
700698
- name: Cache dependencies
701-
uses: actions/cache@v2
699+
uses: actions/cache@v3
702700
with:
703701
path: ~/.npm
704702
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
@@ -748,7 +746,7 @@ jobs:
748746
node-version: '14'
749747
750748
- name: Cache dependencies
751-
uses: actions/cache@v2
749+
uses: actions/cache@v3
752750
with:
753751
path: ~/.npm
754752
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
@@ -801,12 +799,12 @@ jobs:
801799
802800
- name: Get yarn cache
803801
id: yarn-cache
804-
run: echo "::set-output name=dir::$(yarn cache dir)"
802+
run: echo "YARN_CACHE_DIR=$(yarn cache dir)" >> "${GITHUB_OUTPUT}"
805803
806804
- name: Cache dependencies
807-
uses: actions/cache@v2
805+
uses: actions/cache@v3
808806
with:
809-
path: ${{ steps.yarn-cache.outputs.dir }}
807+
path: ${{ steps.yarn-cache.outputs.YARN_CACHE_DIR }}
810808
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
811809
restore-keys: |
812810
${{ runner.os }}-yarn-
@@ -857,7 +855,7 @@ jobs:
857855
node-version: '14'
858856
859857
- name: Cache dependencies
860-
uses: actions/cache@v2
858+
uses: actions/cache@v3
861859
with:
862860
path: ~/.npm
863861
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
@@ -916,12 +914,12 @@ jobs:
916914
917915
- name: Get yarn cache
918916
id: yarn-cache
919-
run: echo "::set-output name=dir::$(yarn cache dir)"
917+
run: echo "YARN_CACHE_DIR=$(yarn cache dir)" >> "${GITHUB_OUTPUT}"
920918
921919
- name: Cache dependencies
922-
uses: actions/cache@v2
920+
uses: actions/cache@v3
923921
with:
924-
path: ${{ steps.yarn-cache.outputs.dir }}
922+
path: ${{ steps.yarn-cache.outputs.YARN_CACHE_DIR }}
925923
key: ${{ runner.os }}-website-${{ hashFiles('**/yarn.lock') }}
926924
restore-keys: |
927925
${{ runner.os }}-website-
@@ -981,7 +979,7 @@ jobs:
981979
run: echo "::set-output name=dir::$(pip cache dir)"
982980
983981
- name: Cache dependencies
984-
uses: actions/cache@v2
982+
uses: actions/cache@v3
985983
with:
986984
path: ${{ steps.pip-cache.outputs.dir }}
987985
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
@@ -1168,7 +1166,7 @@ jobs:
11681166
steps:
11691167
- uses: actions/checkout@v3
11701168

1171-
- uses: actions/cache@v2
1169+
- uses: actions/cache@v3
11721170
with:
11731171
path: |
11741172
~/Publish_build

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: 'GitHub Pages action'
22
description: 'GitHub Actions for GitHub Pages 🚀 Deploy static files and publish your site easily. Static-Site-Generators-friendly.'
33
author: 'peaceiris'
44
runs:
5-
using: 'node12'
5+
using: 'node16'
66
main: 'lib/index.js'
77
branding:
88
icon: 'upload-cloud'

docker-compose.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

package-lock.json

Lines changed: 37 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"description": "GitHub Actions for GitHub Pages",
55
"main": "lib/index.js",
66
"engines": {
7-
"node": ">=12.20.1",
8-
"npm": ">=7.5.2"
7+
"node": ">=16.18.0",
8+
"npm": ">=8.19.0"
99
},
1010
"scripts": {
1111
"postinstall": "npx husky install",
@@ -47,7 +47,7 @@
4747
},
4848
"homepage": "https://github.com/peaceiris/actions-gh-pages#readme",
4949
"dependencies": {
50-
"@actions/core": "^1.6.0",
50+
"@actions/core": "^1.10.0",
5151
"@actions/exec": "^1.1.1",
5252
"@actions/github": "^5.0.1",
5353
"@actions/glob": "^0.2.1",

0 commit comments

Comments
 (0)