···1010 type: string
1111 secrets:
1212 BOT_APP_ID:
1313- description: 'The GitHub App ID for authenticating with the GitHub API'
1313+ description: "The GitHub App ID for authenticating with the GitHub API"
1414 required: true
1515 BOT_PRIVATE_KEY:
1616- description: 'The GitHub App Private Key for authenticating with the GitHub API'
1616+ description: "The GitHub App Private Key for authenticating with the GitHub API"
1717 required: true
18181919jobs:
2020 format:
2121 if: github.repository_owner == 'bombshell-dev'
2222 runs-on: ubuntu-latest
2323+ permissions:
2424+ contents: write
2525+ pull-requests: write
2626+2327 steps:
2428 - name: Generate a token
2529 id: bot-token
···2731 with:
2832 app-id: ${{ secrets.BOT_APP_ID }}
2933 private-key: ${{ secrets.BOT_PRIVATE_KEY }}
3030-3434+3135 - uses: actions/checkout@v4
3236 with:
3337 ref: ${{ github.head_ref }}
+6-2
.github/workflows/preview.yml
···33 workflow_call:
44 inputs:
55 publish:
66- description: 'The directory to publish to pkg.pr.new'
66+ description: "The directory to publish to pkg.pr.new"
77 default: "./packages/**"
88 required: false
99 type: string
1010 template:
1111- description: 'The directory of templates to publish to StackBlitz'
1111+ description: "The directory of templates to publish to StackBlitz"
1212 default: "./examples/**"
1313 required: false
1414 type: string
···1717 preview:
1818 if: github.repository_owner == 'bombshell-dev'
1919 runs-on: ubuntu-latest
2020+ permissions:
2121+ contents: write
2222+ pull-requests: write
2323+ id-token: write
20242125 steps:
2226 - uses: actions/checkout@v4
+6-2
.github/workflows/publish.yml
···44 workflow_call:
55 secrets:
66 BOT_APP_ID:
77- description: 'The GitHub App ID for authenticating with the GitHub API'
77+ description: "The GitHub App ID for authenticating with the GitHub API"
88 required: true
99 BOT_PRIVATE_KEY:
1010- description: 'The GitHub App Private Key for authenticating with the GitHub API'
1010+ description: "The GitHub App Private Key for authenticating with the GitHub API"
1111 required: true
12121313jobs:
1414 publish:
1515 if: github.repository_owner == 'bombshell-dev'
1616 runs-on: ubuntu-latest
1717+ permissions:
1818+ contents: write
1919+ pull-requests: write
2020+ id-token: write
17211822 steps:
1923 - name: Generate a token