Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert gh action upgrades #33

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/pr-preview-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ jobs:
build-pr-preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3

- uses: actions/setup-node@v4
- uses: actions/setup-node@v3
with:
node-version: "18"
- name: Build
Expand All @@ -20,11 +20,11 @@ jobs:
mkdir -p ./pr
echo ${{ github.event.number }} > ./pr/NR

- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v3
with:
name: build
path: build/
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v3
with:
name: pr
path: pr/
8 changes: 4 additions & 4 deletions .github/workflows/pr-preview-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
github.event.workflow_run.conclusion == 'success'
steps:
- name: Download build
uses: actions/github-script@v7
uses: actions/github-script@v3
with:
script: |
var artifacts = await github.actions.listWorkflowRunArtifacts({
Expand All @@ -33,7 +33,7 @@ jobs:
var fs = require('fs');
fs.writeFileSync('${{github.workspace}}/build.zip', Buffer.from(download.data));
- name: Download PR number
uses: actions/github-script@v7
uses: actions/github-script@v3
with:
script: |
var artifacts = await github.actions.listWorkflowRunArtifacts({
Expand All @@ -57,7 +57,7 @@ jobs:
- run: unzip pr.zip

- name: Generate issue_number
uses: actions/github-script@v7
uses: actions/github-script@v3
id: issue_number
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -67,7 +67,7 @@ jobs:
result-encoding: string

- name: Generate Surge URL
uses: actions/github-script@v7
uses: actions/github-script@v3
id: surge-url
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ jobs:
name: "Github pages"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Build
run: |
npm ci
npm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: build
Expand Down
Loading