diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ba22191..231cd0a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,12 +9,16 @@ on: jobs: ci: runs-on: ubuntu-latest + strategy: + matrix: + node: [16, 18, 20, lts] + name: Build with node ${{ matrix.node }} steps: - uses: actions/checkout@v4 # v4 - uses: actions/setup-node@v3 # v3 with: - node-version-file: '.nvmrc' cache: 'yarn' + node-version: ${{ matrix.node }} - name: Install dependencies 📦 run: yarn install --immutable diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fe4466c..e42b8d3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v3 with: - node-version: "lts/*" + node-version: 'lts' cache: 'yarn' - name: Install dependencies run: yarn install --immutable @@ -33,4 +33,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - run: npx semantic-release + run: npx semantic-release --branches main