Updated Actions to only occur on certain branches #2
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: Release | ||
on: | ||
release: | ||
types: [released] | ||
jobs: | ||
quality: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Biome | ||
uses: biomejs/setup-biome@v1 | ||
with: | ||
version: latest | ||
- name: Run Biome | ||
run: biome ci . # https://biomejs.dev/reference/cli/#biome-ci | ||
publish: | ||
needs: quality | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
id-token: write | ||
steps: | ||
- name: Checkout code & submodules | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: latest | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 'latest' | ||
- name: Install Dependencies | ||
run: pnpm install | ||
- name: Build Package | ||
run: pnpm run build | ||
- name: "Publish to NPM" | ||
uses: JS-DevTools/npm-publish@v3 | ||
with: | ||
token: ${{ secrets.NPM_TOKEN }} | ||
access: public | ||
- name: "Publish to JSR" | ||
run: "pnpm dlx jsr publish" |