27.0.0 #28
Workflow file for this run
This file contains hidden or 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: Publish | |
on: | |
release: | |
types: [published] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: denoland/setup-deno@v2 | |
with: | |
deno-version: canary | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "22.x" | |
registry-url: "https://registry.npmjs.org" | |
- run: deno install | |
- name: Build JSR | |
run: deno task build:deno | |
- name: Publish JSR | |
run: cd deno && deno publish | |
- name: Build npm | |
run: deno task build | |
- name: Publish npm | |
run: | | |
(cd packages/common && npm publish --provenance --access public) | |
(cd packages/bootstrap && npm publish --provenance --access public) | |
(cd packages/ts-morph && npm publish --provenance --access public) | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |