Skip to content

chore(deps): update non-major #139

chore(deps): update non-major

chore(deps): update non-major #139

Workflow file for this run

name: Test && Release
on:
push:
pull_request:
branches:
- main
- beta
- alpha
jobs:
test:
runs-on: ${{ matrix.platform }}
name: Test on Node.js ${{ matrix.node-version }} / ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, macos-latest]
node-version: [lts/*, current]
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3
with:
node-version: ${{ matrix.node-version }}
- run: npm i pnpm@latest -g
- run: pnpm install
- run: pnpm lint
- run: pnpm build
- run: pnpm test
release:
name: Semantic Release
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
with:
# Need to fetch entire commit history to
# analyze every commit since last release
fetch-depth: 0
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3
with:
node-version: lts/*
- run: npm i pnpm@latest -g
- run: pnpm install
# Branches that will release new versions are defined in .releaserc.json
- run: pnpm semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}