generated from atls-lab/template
-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (57 loc) · 1.55 KB
/
publish.yaml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Publish
on:
pull_request:
types:
- closed
branches:
- master
paths-ignore:
- '.github/**'
jobs:
run:
name: Publish
env:
NODE_VERSION: '22'
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: actions/create-github-app-token@v1
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@v4
with:
ref: master
token: ${{ steps.app-token.outputs.token }}
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install
uses: ./.github/actions/install
- name: Version
uses: ./.github/actions/version
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish to NPM
if: ${{ !cancelled() }}
id: npm
uses: ./.github/actions/publish-npm
with:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish to JSR
if: ${{ !cancelled() }}
id: jsr
uses: ./.github/actions/publish-jsr
- name: Create release
if: ${{ !cancelled() }}
uses: ./.github/actions/release
with:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
- name: Commit changes
if: ${{ !cancelled() }}
uses: ./.github/actions/commit
with:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}