From 2d91a5189bfe61ffc140d1995713944f933f1e7d Mon Sep 17 00:00:00 2001 From: Simon Golms Date: Tue, 7 May 2024 20:28:38 +0200 Subject: [PATCH] ci(github): [release] run on branch 'master' and 'next' - update to `ubuntu-22.04` runner-image - fetch all history for all branches and tags - replace the install dependencies command with the fully written form - bump action actions/checkout from 3 to 4 - bump action actions/setup-node from 3 to 4 --- .github/workflows/release.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3328af1..944fdbb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,23 +3,27 @@ name: Release on: push: branches: - - main + - master + - next + jobs: release: env: # Disable husky (git hooks) in CI, see: https://typicode.github.io/husky/#/?id=disable-husky-in-cidocker HUSKY: 0 name: Release - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-node@v4 with: - node-version-file: '.nvmrc' + node-version-file: ".nvmrc" registry-url: https://registry.npmjs.org/ cache: npm - name: Install Dependencies - run: npm ci + run: npm clean-install - name: Run Tests run: npm test - name: Release package to npm and GitHub