-
Notifications
You must be signed in to change notification settings - Fork 4
36 lines (32 loc) · 972 Bytes
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Publish
on:
release:
types: [published]
permissions:
id-token: write
contents: write
jobs:
channel:
runs-on: "ubuntu-latest"
steps:
- id: generate-token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.BOT_APP_ID }}
private_key: ${{ secrets.BOT_PRIVATE_KEY }}
- uses: actions/checkout@v4
with:
token: ${{ steps.generate-token.outputs.token }}
- uses: actions/checkout@v4
with:
repository: autifyhq/homebrew-tap
path: homebrew-tap
token: ${{ steps.generate-token.outputs.token }}
- uses: ./.github/actions/setup
with:
aws-credentials: publish
- run: git config --global user.name "${GITHUB_ACTOR}"
- run: git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- run: npm run release publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_RELEASE_TOKEN}}