From b7e9ba2bc327504cab710666ca7a68f9fa24512d Mon Sep 17 00:00:00 2001 From: Haider Alshamma Date: Fri, 7 Mar 2025 12:53:38 -0500 Subject: [PATCH] ci: fix the release pipeline (#61) --- .github/workflows/release.yml | 10 ++++++---- .nvmrc | 1 + 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 .nvmrc diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5d3279d..fb0fae2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,19 +3,21 @@ on: push: branches: - master + - next + - beta jobs: release: name: Release - runs-on: ubuntu-18.04 + runs-on: ubuntu-22.04 steps: - name: Checkout uses: actions/checkout@v2 with: fetch-depth: 0 - name: Setup Node.js - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: - node-version: 12 + node-version-file: '.nvmrc' - name: Install dependencies run: yarn - name: Build @@ -24,4 +26,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - run: npx semantic-release \ No newline at end of file + run: npx semantic-release diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..05f0468 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v22.11.0 \ No newline at end of file