diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eed6d3b..ea0a291 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,9 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 + - uses: actions/setup-node@v3 + with: + node-version: '18.x' - run: npm ci - run: npm run transpile - run: npm run test diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 5286974..c5141ed 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -36,6 +36,10 @@ jobs: # a pull request then we can checkout the head. fetch-depth: 2 + - uses: actions/setup-node@v3 + with: + node-version: '18.x' + # If this run was triggered by a pull request event, then checkout # the head of the pull request instead of the merge commit. - run: git checkout HEAD^2 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d390302..a68570c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,6 +10,10 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 + - uses: actions/setup-node@v3 + with: + node-version: '18.x' + registry-url: 'https://registry.npmjs.org' - run: npm ci - run: npm run transpile - run: npm run test