Skip to content

Publish

Publish #102

Workflow file for this run

name: Publish
on:
workflow_dispatch:
jobs:
run:
name: Publish
env:
NODE_VERSION: '19'
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.ATLANTIS_SUPER_BOT_APP_ID }}
private-key: ${{ secrets.ATLANTIS_SUPER_BOT_PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@v4
with:
ref: master
token: ${{ steps.app-token.outputs.token }}
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install
uses: ./.github/actions/install
- name: Apply versions
uses: ./.github/actions/version-apply
- name: Publish to NPM
id: npm
uses: ./.github/actions/publish-npm
with:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish to JSR
id: jsr
uses: ./.github/actions/publish-jsr
- name: Create release
if: steps.npm.outcome == 'success' || steps.jsr.outcome == 'success'
uses: ./.github/actions/release
with:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
- name: Commit changes
if: steps.npm.outcome == 'success' || steps.jsr.outcome == 'success'
uses: ./.github/actions/commit
with:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}