fix(deps): update dependency glob to v11 #555
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Node.js CI | |
on: | |
push: | |
branches: | |
- main | |
- '[0-9]+.[0-9]+.x' | |
- '[0-9]+.x.x' | |
- '[0-9]+.x' | |
- next | |
- next-major | |
- alpha | |
- beta | |
pull_request: | |
branches: | |
- main | |
- '[0-9]+.[0-9]+.x' | |
- '[0-9]+.x.x' | |
- '[0-9]+.x' | |
- next | |
- next-major | |
- alpha | |
- beta | |
concurrency: | |
group: ${{ github.head_ref || github.ref_name }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x, 18.x, 20.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 7 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
- run: pnpm install --frozen-lockfile --prefer-offline --reporter=append-only | |
- run: pnpm run lint | |
- run: pnpm run build | |
- run: pnpm test | |
publish: | |
if: github.ref_name == 'main' | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 7 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18.x' | |
registry-url: 'https://registry.npmjs.org' | |
scope: '@rollup-extras' | |
cache: 'pnpm' | |
- run: pnpm install --frozen-lockfile --prefer-offline --reporter=append-only | |
- run: pnpm run build | |
- name: create and publish versions | |
uses: changesets/action@v1 | |
with: | |
commit: "chore: update versions" | |
title: "chore: release" | |
publish: "pnpm run ci:publish" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |