Skip to content

chore(release): Publish alpha from alpha branch #361

chore(release): Publish alpha from alpha branch

chore(release): Publish alpha from alpha branch #361

Workflow file for this run

name: Release
on: [push]
permissions:
contents: write
issues: write
pull-requests: write
jobs:
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- uses: pnpm/action-setup@v4
- run: pnpm install
- name: Audit for vulnerabilities
run: 'pnpm run audit-npm-packages'
lint:
runs-on: ubuntu-latest
needs: [security]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- uses: pnpm/action-setup@v4
- run: pnpm install
- name: Lint
run: pnpm run lint
test:
runs-on: ubuntu-latest
needs: [lint]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- uses: pnpm/action-setup@v4
- run: pnpm install
- name: Test
run: pnpm run test
release:
runs-on: ubuntu-latest
needs: [test]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- uses: pnpm/action-setup@v4
- run: pnpm install
- name: Build
run: pnpm run build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release