From 757fbd790b14dc130441d815c38a9cc85f9a84d3 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Sat, 8 Jun 2024 11:41:48 +0200 Subject: [PATCH] Remove `actions/setup-node` (#1574) --- .github/workflows/ci.yml | 3 --- .github/workflows/initiateNewVote.yml | 8 -------- 2 files changed, 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 544bfa38..575e4b5c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,9 +24,6 @@ jobs: - name: Clone repository uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 - - name: Set up Node.js - uses: actions/setup-node@v4 - - name: Install npm dependencies run: npm ci diff --git a/.github/workflows/initiateNewVote.yml b/.github/workflows/initiateNewVote.yml index 9daad0e9..ee0eb4fe 100644 --- a/.github/workflows/initiateNewVote.yml +++ b/.github/workflows/initiateNewVote.yml @@ -27,10 +27,6 @@ jobs: # If the subject is still REPLACEME, that would mean it's a PR to modify # the sample file, not a PR initializing a vote. - run: '! grep -q "subject: REPLACEME" votes/initiateNewVote.yml' - - name: Use Node.js ${{ env.NODE_VERSION }} - uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 - with: - node-version: lts/* - name: Validate YAML and ensure there are more than 1 candidate run: npx js-yaml votes/initiateNewVote.yml | jq '.candidates | unique | @@ -59,10 +55,6 @@ jobs: - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 with: persist-credentials: true # we need the credentials to push the new vote branch - - name: Install Node.js - uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 - with: - node-version: lts/* - name: Extract info from the pushed file id: data run: |