chore(deps-dev): bump semantic-release from 22.0.12 to 23.0.0 #292
Workflow file for this run
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: Test & Maybe Release | |
on: [push, pull_request] | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
node: [16.x, 18.x, lts/*, current] | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node }} | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install Dependencies | |
run: | | |
npm install --no-progress | |
- name: Run tests | |
run: | | |
npm config set script-shell bash | |
npm run test:ci | |
- name: Typecheck | |
uses: gozala/[email protected] | |
release: | |
name: Release | |
needs: test | |
runs-on: ubuntu-latest | |
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: lts/* | |
- name: Install dependencies | |
run: | | |
npm install --no-progress --no-package-lock --no-save | |
- name: Build | |
run: | | |
npm run build | |
- name: Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: npx semantic-release | |