v0.1.0 (to-json-schema) #9
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: Publish | |
on: | |
release: | |
types: [published] | |
workflow_dispatch: | |
jobs: | |
default_ci: | |
name: Run default CI of repository | |
uses: ./.github/workflows/ci.yml | |
library_npm: | |
name: Publish library to NPM | |
needs: default_ci | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
id-token: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup pnpm | |
uses: ./.github/actions/pnpm | |
- name: Build | |
run: pnpm build | |
working-directory: library | |
- name: Publish | |
run: pnpm publish --provenance --access public | |
working-directory: library | |
continue-on-error: true | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
library_jsr: | |
name: Publish library to JSR | |
needs: default_ci | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
id-token: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Publish | |
run: npx jsr publish | |
working-directory: library | |
i18n_npm: | |
name: Publish i18n to NPM | |
needs: default_ci | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
id-token: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup pnpm | |
uses: ./.github/actions/pnpm | |
- name: Build | |
run: pnpm build.npm | |
working-directory: packages/i18n | |
- name: Publish | |
run: pnpm publish --provenance --access public --no-git-checks | |
working-directory: packages/i18n | |
continue-on-error: true | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
i18n_jsr: | |
name: Publish i18n to JSR | |
needs: default_ci | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
id-token: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup pnpm | |
uses: ./.github/actions/pnpm | |
- name: Build | |
run: pnpm build.jsr | |
working-directory: packages/i18n | |
- name: Publish | |
run: npx jsr publish --allow-dirty | |
working-directory: packages/i18n | |
to_json_schema_npm: | |
name: Publish to-json-schema to NPM | |
needs: default_ci | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
id-token: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup pnpm | |
uses: ./.github/actions/pnpm | |
- name: Build | |
run: pnpm build | |
working-directory: packages/to-json-schema | |
- name: Publish | |
run: pnpm publish --provenance --access public | |
working-directory: packages/to-json-schema | |
continue-on-error: true | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
to_json_schema_jsr: | |
name: Publish to-json-schema to JSR | |
needs: default_ci | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
id-token: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Publish | |
run: npx jsr publish | |
working-directory: packages/to-json-schema |