diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 0ad48b82..b70b5834 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -1,12 +1,6 @@ name: Setup description: Setup Node.js and install dependencies -inputs: - restore-turbo-cache: - description: 'Whether to restore the Turbo cache' - required: false - default: 'true' - runs: using: composite steps: @@ -25,7 +19,6 @@ runs: shell: bash - name: Restore Turbo cache - if: inputs.restore-turbo-cache == 'true' uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5 with: path: | @@ -35,4 +28,3 @@ runs: key: ${{ runner.os }}-turbo-${{ hashFiles('yarn.lock', 'package-lock.json', 'pnpm-lock.yaml', 'turbo.json', 'apps/*/turbo.json', 'packages/*/turbo.json') }} restore-keys: | ${{ runner.os }}-turbo- - diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index ea097e95..9f46f0c3 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -23,8 +23,17 @@ jobs: - name: Checkout uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 - - name: Setup - uses: ./.github/actions/setup + - name: Setup Node.js + uses: actions/setup-node@65d868f8d4d85d7d4abb7de0875cde3fcc8798f5 # v6 + with: + node-version: 'lts/*' + package-manager-cache: false # disable caching + + - name: Install dependencies + run: yarn install + + - name: Build + run: yarn build - name: Setup Pages uses: actions/configure-pages@d5606572c479bee637007364c6b4800ac4fc8573 # v5 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 847af816..aa7f3a51 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,11 +19,14 @@ jobs: - name: Checkout uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 - - name: Setup - uses: ./.github/actions/setup + - name: Setup Node.js + uses: actions/setup-node@65d868f8d4d85d7d4abb7de0875cde3fcc8798f5 # v6 with: - restore-turbo-cache: 'false' # in release workflow, build from scratch + node-version: 'lts/*' + package-manager-cache: false # disable caching + - name: Install dependencies + run: yarn install - name: Build run: yarn build