Skip to content

chore: format .releaserc.json file for consistency #25

chore: format .releaserc.json file for consistency

chore: format .releaserc.json file for consistency #25

Workflow file for this run

name: Release
on:
push:
branches: [ main, develop ]
workflow_dispatch:
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
attestations: write
jobs:
release:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'npm'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
- name: Build project
run: npm run build:local
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
- name: Setup Deno for JSR
if: github.ref == 'refs/heads/main'
uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: Publish to JSR
if: github.ref == 'refs/heads/main'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: deno publish --allow-slow-types