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

fix: node and pnpm version in the github actions #273

Closed
wants to merge 9 commits into from
32 changes: 0 additions & 32 deletions .github/actions/setup-node/action.yaml

This file was deleted.

16 changes: 9 additions & 7 deletions .github/workflows/guides.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ jobs:
# SETUP & INSTALL
- name: Checkout repo
uses: actions/checkout@v3
- uses: ./.github/actions/setup-node
- uses: FuelLabs/github-actions/setups/node@hf/fix/setup-pnpm
with:
install: false
- name: Install dependencies
node-version: 18.18.2
pnpm-version: 8.15.7
pnpm-recursive: false
- name: Install markdownlint
run: npm install -g [email protected]
# RUN LINT CHECK
- name: Lint Check
Expand All @@ -51,14 +53,14 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: 'true'
- uses: ./.github/actions/setup-node
- uses: FuelLabs/github-actions/setups/node@hf/fix/setup-pnpm
with:
install: false
node-version: 18.18.2
pnpm-version: 8.15.7
pnpm-recursive: false
- uses: dtolnay/rust-toolchain@stable

# INSTALLATIONS
- name: Install dependencies
run: pnpm install
- name: Install Playwright Browsers
run: npx playwright install --with-deps chromium
- name: Install cargo-generate
Expand Down
21 changes: 10 additions & 11 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-node
- uses: FuelLabs/github-actions/setups/node@hf/fix/setup-pnpm
with:
install: false
- run: |
pnpm install
pnpm audit --prod
node-version: 18.18.2
pnpm-version: 8.15.7
pnpm-recursive: false
- run: pnpm audit --prod

lint:
name: Lint
Expand All @@ -40,11 +40,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- uses: ./.github/actions/setup-node
- uses: FuelLabs/github-actions/setups/node@hf/fix/setup-pnpm
with:
install: false

node-version: 18.18.2
pnpm-version: 8.15.7
pnpm-recursive: false
- name: Run lint
run: |
pnpm install
pnpm check:prod
run: pnpm check:prod
11 changes: 5 additions & 6 deletions .github/workflows/update-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@ jobs:
with:
submodules: 'true'

- uses: ./.github/actions/setup-node
- uses: FuelLabs/github-actions/setups/node@hf/fix/setup-pnpm
with:
install: false

node-version: 18.18.2
pnpm-version: 8.15.7
pnpm-recursive: false
- name: Run Script
run: |
pnpm install
pnpm docs:update:nightly --from-workflow
run: pnpm docs:update:nightly --from-workflow
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
save-exact = true
Loading
Loading