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

chore: update actions #554

Merged
merged 11 commits into from
Nov 18, 2024
22 changes: 12 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,20 @@ jobs:
defaults:
run:
working-directory: "./packages/${{ inputs.package }}"
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- name: "Checkout"
uses: actions/checkout@v3
uses: actions/checkout@v4.1.6

- name: Install pnpm
uses: pnpm/action-setup@v2.4.1

- name: Build with NodeJS 18
uses: actions/setup-node@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4.0.2
with:
node-version: 18
cache: "pnpm"
node-version: ${{ matrix.node-version }}

- name: Install pnpm
uses: pnpm/action-setup@v4.0.0

- name: Install deps
run: pnpm i
Expand All @@ -37,7 +39,7 @@ jobs:
run: pnpm run build:types

- name: Create build-output artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4.3.3
with:
name: build-output
name: build-output-${{ matrix.node-version }}
path: "./packages/${{ inputs.package }}/dist"
6 changes: 3 additions & 3 deletions .github/workflows/generate_markdown_files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v3
uses: actions/checkout@v4.1.6
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.BOT_REPO_SCOPED_TOKEN }}
- name: Install pnpm
uses: pnpm/action-setup@v2.4.1
uses: pnpm/action-setup@v4.0.0
- name: Install deps
run: pnpm i
- name: generate-docs
run: pnpm run docs
- name: Auto Generate Markdown Files
id: generate-markdown
uses: EndBug/add-and-commit@v9
uses: EndBug/add-and-commit@v9.1.4
with:
message: "Auto generated documentation"
add: "*.md"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/jstest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v2.4.1
uses: pnpm/action-setup@v4.0.0

- name: Build with NodeJS 18
uses: actions/setup-node@v3
uses: actions/setup-node@v4.0.2
with:
node-version: 18
cache: "pnpm"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ jobs:
image: returntocorp/semgrep
if: (github.actor != 'dependabot[bot]')
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.6
- run: semgrep ci
12 changes: 6 additions & 6 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: "Checkout"
uses: actions/checkout@v3
uses: actions/checkout@v4.1.6
with:
token: ${{ secrets.BOT_REPO_SCOPED_TOKEN }}
- uses: pnpm/action-setup@v2.4.1
- uses: actions/setup-node@v3
- uses: pnpm/action-setup@v4.0.0
- uses: actions/setup-node@v4.0.2
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4.1.7
with:
name: build-output
name: build-output-${{ matrix.node-version }}
path: packages/pages/dist

# It's important to not run the build for @yext/pages on Windows.
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
default_author: github_actions

- name: Upload Playwright Reports
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4.3.3
if: always()
with:
name: playwright-reports-${{ matrix.os }}-${{ matrix.node-version }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ jobs:
environment: Release
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4.1.6

- name: Install pnpm
uses: pnpm/action-setup@v2.4.1
uses: pnpm/action-setup@v4.0.0

- name: Set node version to 18.x
uses: actions/setup-node@v3
uses: actions/setup-node@v4.0.2
with:
node-version: 18.x
registry-url: https://registry.npmjs.org/
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/third_party_notices_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ jobs:
license-check-setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.6
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.BOT_REPO_SCOPED_TOKEN }}
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4.0.2
with:
node-version: 18.x
registry-url: 'https://registry.npmjs.org'

- name: Install pnpm
uses: pnpm/action-setup@v2.4.1
uses: pnpm/action-setup@v4.0.0

- name: Global install generate-license-file
run: pnpm i -g generate-license-file
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ jobs:
node-version: [18.x, 20.x]
steps:
- name: "Checkout"
uses: actions/checkout@v3
uses: actions/checkout@v4.1.6

- name: Install pnpm
uses: pnpm/action-setup@v2.4.1
uses: pnpm/action-setup@v4.0.0

- name: "test with node ${{ matrix.node-version }}"
uses: actions/setup-node@v3
uses: actions/setup-node@v4.0.2
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
Expand All @@ -34,9 +34,9 @@ jobs:
run: pnpm i

- name: Download build artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4.1.7
with:
name: build-output
name: build-output-${{ matrix.node-version }}
path: dist/

- name: Run tests
Expand Down
Loading