Skip to content

Commit

Permalink
chore: push ancient actions versions
Browse files Browse the repository at this point in the history
  • Loading branch information
imcatwhocode authored Apr 20, 2024
1 parent 8db8ea8 commit 31b632a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 31 deletions.
25 changes: 7 additions & 18 deletions .github/workflows/publish-demo-on-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
demo:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04

# Execute only if "base" and "head" repos are the same
if: ${{ github.event.pull_request.base.repo.full_name == github.event.pull_request.head.repo.full_name }}
Expand Down Expand Up @@ -42,27 +42,16 @@ jobs:
# Checkout source code
# Only when PR is opened or synchronize
- uses: actions/checkout@v2
- uses: actions/checkout@v4
if: ${{ github.event.action == 'opened' || github.event.action == 'synchronize' }}

# Setup Node.js environment
# Only when PR is opened or synchronize
- name: "Setup Node"
uses: actions/setup-node@v2.1.4
uses: actions/setup-node@v4
if: ${{ github.event.action == 'opened' || github.event.action == 'synchronize' }}
with:
node-version: '14.x'

# Cache build dependencies
# Only when PR is opened or synchronize
- name: "Cache dependencies"
uses: actions/cache@v2
if: ${{ github.event.action == 'opened' || github.event.action == 'synchronize' }}
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
node-version: '20.x'

# Build static content
# Only when PR is opened or synchronize
Expand All @@ -83,7 +72,7 @@ jobs:
# Send a "bucket created" message if PR is opened
- name: "Comment about bucket creation"
uses: mshick/add-pr-comment@v1
uses: mshick/add-pr-comment@v2
if: ${{ github.event.action == 'opened' }}
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -95,7 +84,7 @@ jobs:
# Send a "bucket updated" message if PR is synchronized
- name: "Comment about bucket update"
uses: mshick/add-pr-comment@v1
uses: mshick/add-pr-comment@v2
if: ${{ github.event.action == 'synchronize' }}
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -105,7 +94,7 @@ jobs:

# Send a "bucket removed" message if PR is closed
- name: "Comment about bucket remove"
uses: mshick/add-pr-comment@v1
uses: mshick/add-pr-comment@v2
if: ${{ github.event.action == 'closed' }}
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
18 changes: 5 additions & 13 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,20 @@ on:

jobs:
deploy:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v2.1.4
uses: actions/setup-node@v4
with:
node-version: '12.x'

- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
node-version: '20.x'

- run: npm ci
- run: npm run build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
Expand Down

0 comments on commit 31b632a

Please sign in to comment.