Skip to content

Commit

Permalink
build: Update action versions (#3241)
Browse files Browse the repository at this point in the history
## Description

preview-worker-deployment
Node.js 16 actions are deprecated. Please update the following actions
to use Node.js 20: actions/checkout@v3, pnpm/[email protected],
actions/setup-node@v3. For more information see:
https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.


## Steps for reproduction

1. click button
2. expect xyz

## Code Review

- [ ] hi @kof, I need you to do
  - conceptual review (architecture, feature-correctness)
  - detailed review (read every line)
  - test it on preview

## Before requesting a review

- [ ] made a self-review
- [ ] added inline comments where things may be not obvious (the "why",
not "what")

## Before merging

- [ ] tested locally and on preview environment (preview dev login:
5de6)
- [ ] updated [test
cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md)
document
- [ ] added tests
- [ ] if any new env variables are added, added them to `.env.example`
and the `builder/env-check.js` if mandatory
  • Loading branch information
istarkov authored Apr 25, 2024
1 parent 1b3032d commit cf99753
Show file tree
Hide file tree
Showing 11 changed files with 36 additions and 36 deletions.
6 changes: 3 additions & 3 deletions .github/actions/ci-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ runs:
using: "composite"

steps:
- uses: pnpm/action-setup@v2.2.4
- uses: actions/setup-node@v3
- uses: pnpm/action-setup@v3
- uses: actions/setup-node@v4
with:
node-version: "20.x"
node-version: 20
cache: pnpm
- run: pnpm install --frozen-lockfile --ignore-scripts
shell: bash
2 changes: 1 addition & 1 deletion .github/workflows/build-figma-tokens.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
# We don't need a token to push from an action,
# but we need it if want the commit to trigger other workflows as normal
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
sdk-components-react-radix: ${{ steps.deployed-url.outputs.sdk-components-react-radix }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 2 # we need to fetch at least parent commit to satisfy Chromatic
ref: ${{ github.event.pull_request.head.sha || github.sha }} # HEAD commit instead of merge commit
Expand All @@ -98,7 +98,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 2 # we need to fetch at least parent commit to satisfy Chromatic
ref: ${{ github.event.pull_request.head.sha || github.sha }} # HEAD commit instead of merge commit
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/cli-r2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.sha }} # HEAD commit instead of merge commit

- uses: pnpm/action-setup@v2.2.4
- uses: pnpm/action-setup@v3

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: "20.x"
node-version: 20
cache: pnpm

- name: pnpm instal
Expand Down Expand Up @@ -81,13 +81,13 @@ jobs:
needs: build

steps:
- uses: pnpm/action-setup@v2.2.4
- uses: pnpm/action-setup@v3
with:
version: "9"

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: "20.x"
node-version: 20

- name: Copy atrifact via http
run: curl -o cloudflare-template.tar.zst ${{ secrets.ARTEFACT_BUCKET_URL }}/public/cloudflare-template/${{ github.ref_name }}.tar.zst
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cli-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
AUTH_SECRET: test

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }} # HEAD commit instead of merge commit

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }} # HEAD commit instead of merge commit

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
AUTH_SECRET: test

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }} # HEAD commit instead of merge commit

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
AUTH_SECRET: test

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./.github/actions/ci-setup

- run: pnpm -r build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/re-create-figma-tokens-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Re-create branch
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/vercel-deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }} # HEAD commit instead of merge commit

- uses: pnpm/action-setup@v2.2.4
- uses: actions/setup-node@v3
- uses: pnpm/action-setup@v3
- uses: actions/setup-node@v4
with:
node-version: "20.x"
node-version: 20
cache: pnpm

- uses: ./.github/actions/vercel
Expand Down
28 changes: 14 additions & 14 deletions .github/workflows/vis-reg-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
timeout-minutes: 20
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
#with:
#ref: ${{ github.event.pull_request.head.sha || github.sha }} # HEAD commit instead of merge commit

Expand All @@ -40,7 +40,7 @@ jobs:
DATABASE_URL: postgres://
AUTH_SECRET: test
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
#with:
#ref: ${{ github.event.pull_request.head.sha || github.sha }} # HEAD commit instead of merge commit

Expand All @@ -55,17 +55,17 @@ jobs:
LOST_PIXEL_CONFIG_DIR: apps/builder
LOST_PIXEL_API_KEY: 8b76db6c-b9f0-46d1-982f-70900a02690a
finalize:
needs: [builder, design-system]
runs-on: ubuntu-latest
needs: [builder, design-system]
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Lost Pixel Finalize
uses: lost-pixel/[email protected]
env:
LOST_PIXEL_CONFIG_DIR: apps/builder
LOST_PIXEL_API_KEY: 8b76db6c-b9f0-46d1-982f-70900a02690a
with:
FINALIZE: true
- name: Lost Pixel Finalize
uses: lost-pixel/[email protected]
env:
LOST_PIXEL_CONFIG_DIR: apps/builder
LOST_PIXEL_API_KEY: 8b76db6c-b9f0-46d1-982f-70900a02690a
with:
FINALIZE: true

0 comments on commit cf99753

Please sign in to comment.