Skip to content

Commit

Permalink
Fix weekly update workflow (#863)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvkb authored Mar 8, 2023
1 parent b8e294b commit 28574c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 30 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,7 @@ jobs:
# Python is not needed to run pre-commit.
setup_python: false
# Node.js is needed by lint actions.
install_recipe: ""
# Need more complex install recipe.

- name: Install dependencies
run: |
just node-install
install_recipe: "node-install"

- name: Cache pre-commit envs
uses: actions/cache@v3
Expand Down
29 changes: 5 additions & 24 deletions .github/workflows/weekly_updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,34 +16,15 @@ jobs:
name: Create post on Make site
runs-on: ubuntu-latest
steps:
- uses: pnpm/[email protected]
with:
# Ensure that this value matches `packageManager` field.
version: 7.17.1

- name: Cache pnpm modules
uses: actions/cache@v3
with:
path: ~/.local/share/pnpm/store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
- name: Setup CI env
uses: ./.github/actions/setup-env
with:
node-version: 16
cache: pnpm
cache-dependency-path: |
pnpm-lock.yaml
.npmrc
- name: Install dependencies
working-directory: ./automations/js
run: "pnpm install"
github_token: ${{ secrets.GITHUB_TOKEN }}
setup_python: false
install_recipe: node-install

- name: Create draft post
run: just automations/js/report

0 comments on commit 28574c4

Please sign in to comment.