Skip to content

chore: add release

chore: add release #2

name: Test and 🚀 Release
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build:
name: Build, lint, and test on Node
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Install deps and build (with cache)
uses: bahmutov/npm-install@v1
- name: Lint
run: npm run lint
- name: Test
run: npm test
- name: Build
run: npm run build
- name: 🚀 Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npm install @semantic-release/changelog @semantic-release/git --ignore-scripts --no-save
npx semantic-release --dry-run