[READ-ONLY] Mirror of https://github.com/bombshell-dev/automation. GitHub Actions for the Bombshell organization
ci
0

Configure Feed

Select the types of activity you want to include in your feed.

build -> publish

Nate Moore (Mar 30, 2025, 11:08 PM -0500) d51d6068 5a25673a

+12 -12
+12 -12
.github/workflows/build.yml .github/workflows/publish.yml
··· 1 - name: build 1 + name: publish 2 2 3 3 on: 4 4 workflow_call: 5 5 secrets: 6 + NPM_TOKEN: 7 + description: 'A token for publishing to the NPM registry' 8 + required: true 6 9 BOT_APP_ID: 7 10 description: 'The GitHub App ID for authenticating with the GitHub API' 8 11 required: true 9 12 BOT_PRIVATE_KEY: 10 13 description: 'The GitHub App Private Key for authenticating with the GitHub API' 11 14 required: true 12 - outputs: 13 - artifact: 14 - description: "Artifact URL of the build" 15 - value: ${{ jobs.build.outputs.artifact }} 16 15 17 16 jobs: 18 - build: 17 + publish: 19 18 if: github.repository_owner == 'bombshell-dev' 20 19 runs-on: ubuntu-latest 21 - outputs: 22 - artifact: ${{ steps.upload.outputs.artifact-url }} 23 20 24 21 steps: 25 22 - name: Generate a token ··· 50 47 - name: Build 51 48 run: pnpm run build 52 49 53 - - uses: actions/upload-artifact@v4 54 - id: upload 50 + - name: Create Release Pull Request or Publish to npm 51 + id: changesets 52 + uses: changesets/action@v1 55 53 with: 56 - name: build 57 - path: dist 54 + publish: pnpm exec changeset publish 55 + env: 56 + GITHUB_TOKEN: ${{ steps.bot-token.outputs.token }} 57 + NPM_TOKEN: ${{ secrets.NPM_TOKEN }}