Skip to content

👷 We always run out of informational commits #16

👷 We always run out of informational commits

👷 We always run out of informational commits #16

Workflow file for this run

name: Publish
on:
push:
branches:
- main
jobs:
generate-matrix:
name: Generate Job Matrix
runs-on: ubuntu-latest
outputs:
exists: ${{ steps.set-matrix.outputs.exists }}
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
fetch-tags: true
- uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- run: deno run -A www/tasks/publish-matrix.ts
id: set-matrix
jsr:
if: needs.generate-matrix.outputs.exists
name: Publish ${{ matrix.name }}@${{matrix.version}} to JSR
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
needs: [generate-matrix]
strategy:
fail-fast: false
max-parallel: 6
matrix: ${{fromJSON(needs.generate-matrix.outputs.matrix)}}
steps:
- uses: actions/[email protected]
- uses: denoland/setup-deno@v2
- run: deno publish
working-directory: ${{ matrix.workspace }}
npm:
if: needs.generate-matrix.outputs.exists
name: Publish ${{ matrix.name }}@${{matrix.version}} to NPM
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
needs: [generate-matrix]
strategy:
fail-fast: false
max-parallel: 6
matrix: ${{fromJSON(needs.generate-matrix.outputs.matrix)}}
steps:
- uses: actions/[email protected]
- uses: denoland/setup-deno@v2
- uses: actions/setup-node@v4
with:
node-version: 20.x
registry-url: https://registry.npmjs.com
- run: deno run -A www/tasks/build-npm.ts ${{matrix.workspace}}
- run: npm publish --access=public --tag=next
working-directory: ${{matrix.workspace}}/build/npm
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
tag:
if: needs.generate-matrix.outputs.exists
name: "Tag Release"
runs-on: ubuntu-latest
needs: [generate-matrix, jsr, npm]
strategy:
fail-fast: false
matrix: ${{fromJSON(needs.generate-matrix.outputs.matrix)}}
steps:
- uses: actions/[email protected]
with:
token: ${{secrets.FRONTSIDEJACK_GITHUB_TOKEN}}
- run: git tag ${{ matrix.tagname }}
- run: git push origin --tags