-
Notifications
You must be signed in to change notification settings - Fork 6
36 lines (31 loc) · 985 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:
workflow_run:
workflows: ["CI"]
types:
- completed
push:
branches:
- master
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
publish:
if: github.repository == 'ticketevolution/seatmaps-client' && github.event.workflow_run.conclusion == 'success'
runs-on: ubuntu-latest
steps:
- name: Generate a token
id: generate_token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.TEVO_GITHUB_TOKEN_GENERATOR_APP_ID }}
private-key: ${{ secrets.TEVO_GITHUB_TOKEN_GENERATOR_PRIVATE_KEY }}
- uses: actions/checkout@v3
- uses: ./.github/actions/ci-setup
- name: Create Release Pull Request or Publish
id: changesets
uses: changesets/action@v1
with:
publish: pnpm run release
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
NPM_TOKEN: ${{ secrets.TEVO_NPM_TOKEN }}