Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Shohei Ueda authored and GitHub committed Oct 23, 2022
1 parent 2bef62f commit 44a2b44
Show file tree
Hide file tree
Showing 9 changed files with 56 additions and 162 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/dev-image.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .nvmrc
@@ -1 +1 @@
12.22.10
16.18.0
56 changes: 0 additions & 56 deletions Dockerfile

This file was deleted.

10 changes: 0 additions & 10 deletions Makefile

This file was deleted.

30 changes: 14 additions & 16 deletions README.md
Expand Up @@ -504,17 +504,15 @@ jobs:
id: prepare_tag
if: startsWith(github.ref, 'refs/tags/')
run: |
TAG_NAME="${GITHUB_REF##refs/tags/}"
echo "::set-output name=tag_name::${TAG_NAME}"
echo "::set-output name=deploy_tag_name::deploy-${TAG_NAME}"
echo "DEPLOY_TAG_NAME=deploy-${TAG_NAME}" >> "${GITHUB_OUTPUT}"
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
tag_name: ${{ steps.prepare_tag.outputs.deploy_tag_name }}
tag_message: 'Deployment ${{ steps.prepare_tag.outputs.tag_name }}'
tag_name: ${{ steps.prepare_tag.outputs.DEPLOY_TAG_NAME }}
tag_message: 'Deployment ${{ github.ref_name }}'
```

Commands on a local machine.
Expand Down Expand Up @@ -698,7 +696,7 @@ jobs:
node-version: '14'

- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
Expand Down Expand Up @@ -748,7 +746,7 @@ jobs:
node-version: '14'

- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
Expand Down Expand Up @@ -801,12 +799,12 @@ jobs:

- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
run: echo "YARN_CACHE_DIR=$(yarn cache dir)" >> "${GITHUB_OUTPUT}"

- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ steps.yarn-cache.outputs.dir }}
path: ${{ steps.yarn-cache.outputs.YARN_CACHE_DIR }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
Expand Down Expand Up @@ -857,7 +855,7 @@ jobs:
node-version: '14'

- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
Expand Down Expand Up @@ -916,12 +914,12 @@ jobs:

- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
run: echo "YARN_CACHE_DIR=$(yarn cache dir)" >> "${GITHUB_OUTPUT}"

- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ steps.yarn-cache.outputs.dir }}
path: ${{ steps.yarn-cache.outputs.YARN_CACHE_DIR }}
key: ${{ runner.os }}-website-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-website-
Expand Down Expand Up @@ -981,7 +979,7 @@ jobs:
run: echo "::set-output name=dir::$(pip cache dir)"

- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
Expand Down Expand Up @@ -1168,7 +1166,7 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: actions/cache@v2
- uses: actions/cache@v3
with:
path: |
~/Publish_build
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Expand Up @@ -2,7 +2,7 @@ name: 'GitHub Pages action'
description: 'GitHub Actions for GitHub Pages 🚀 Deploy static files and publish your site easily. Static-Site-Generators-friendly.'
author: 'peaceiris'
runs:
using: 'node12'
using: 'node16'
main: 'lib/index.js'
branding:
icon: 'upload-cloud'
Expand Down
16 changes: 0 additions & 16 deletions docker-compose.yml

This file was deleted.

58 changes: 37 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -4,8 +4,8 @@
"description": "GitHub Actions for GitHub Pages",
"main": "lib/index.js",
"engines": {
"node": ">=12.20.1",
"npm": ">=7.5.2"
"node": ">=16.18.0",
"npm": ">=8.19.0"
},
"scripts": {
"postinstall": "npx husky install",
Expand Down Expand Up @@ -47,7 +47,7 @@
},
"homepage": "https://github.com/peaceiris/actions-gh-pages#readme",
"dependencies": {
"@actions/core": "^1.6.0",
"@actions/core": "^1.10.0",
"@actions/exec": "^1.1.1",
"@actions/github": "^5.0.1",
"@actions/glob": "^0.2.1",
Expand Down

0 comments on commit 44a2b44

Please sign in to comment.