Collapse Raijin public package surface #275
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: | |
| workflow_dispatch: | |
| pull_request: | |
| types: | |
| - closed | |
| branches: | |
| - master | |
| paths-ignore: | |
| - '.github/**' | |
| concurrency: | |
| group: publish-master | |
| cancel-in-progress: false | |
| jobs: | |
| run: | |
| name: Publish | |
| if: ${{ github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true }} | |
| env: | |
| NODE_VERSION: '24' | |
| runs-on: ubuntu-latest | |
| permissions: write-all | |
| steps: | |
| - uses: actions/create-github-app-token@v2 | |
| 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@v6 | |
| with: | |
| ref: ${{ github.event_name == 'workflow_dispatch' && github.ref || 'master' }} | |
| token: ${{ steps.app-token.outputs.token }} | |
| fetch-depth: 0 | |
| - name: Setup Node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| - name: Install | |
| uses: ./.github/actions/install | |
| - name: Version | |
| id: version | |
| if: ${{ github.event.pull_request.merged == true }} | |
| uses: ./.github/actions/version | |
| with: | |
| GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} | |
| - name: Verify NPM auth | |
| if: ${{ github.event_name == 'workflow_dispatch' }} | |
| run: | | |
| yarn npm whoami --publish | |
| env: | |
| YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| YARN_NPM_REGISTRY_SERVER: https://registry.npmjs.org | |
| YARN_NPM_PUBLISH_REGISTRY: https://registry.npmjs.org | |
| - name: Verify GitHub Packages auth | |
| if: ${{ github.event_name == 'workflow_dispatch' }} | |
| run: | | |
| yarn npm whoami --publish | |
| env: | |
| YARN_NPM_AUTH_TOKEN: ${{ github.token }} | |
| YARN_NPM_REGISTRY_SERVER: https://npm.pkg.github.com | |
| YARN_NPM_PUBLISH_REGISTRY: https://npm.pkg.github.com | |
| - name: Publish to NPM | |
| if: ${{ success() && (github.event_name == 'workflow_dispatch' || steps.version.outputs.release_required == 'true') }} | |
| id: npm | |
| uses: ./.github/actions/publish-npm | |
| with: | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| env: | |
| YARN_NPM_REGISTRY_SERVER: https://registry.npmjs.org | |
| YARN_NPM_PUBLISH_REGISTRY: https://registry.npmjs.org | |
| - name: Publish to GitHub Packages | |
| if: ${{ success() && (github.event_name == 'workflow_dispatch' || steps.version.outputs.release_required == 'true') }} | |
| id: github-packages | |
| uses: ./.github/actions/publish-github-packages | |
| with: | |
| GITHUB_PACKAGES_TOKEN: ${{ github.token }} | |
| env: | |
| YARN_NPM_REGISTRY_SERVER: https://npm.pkg.github.com | |
| YARN_NPM_PUBLISH_REGISTRY: https://npm.pkg.github.com | |
| - name: Bundle yarn | |
| if: ${{ success() && steps.version.outputs.release_required == 'true' }} | |
| uses: ./.github/actions/bundle | |
| - name: Create release | |
| if: ${{ success() && steps.version.outputs.release_required == 'true' }} | |
| uses: ./.github/actions/release | |
| with: | |
| GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} | |
| - name: Commit changes | |
| if: ${{ success() && steps.version.outputs.release_required == 'true' }} | |
| uses: ./.github/actions/commit | |
| with: | |
| GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} |