Repository navigation
51 lines (47 loc) · 1.65 KB
/
Copy pathrelease.yml
File metadata and controls
51 lines (47 loc) · 1.65 KB
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
name: Release
on:
workflow_dispatch:
concurrency:
group: release-main
cancel-in-progress: false
permissions:
contents: read
id-token: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Create release App token
id: release-app-token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ vars.RELEASE_APP_ID }}
private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
owner: addon-stack
repositories: addon-pay
- uses: actions/checkout@v6
with:
fetch-depth: 0
token: ${{ steps.release-app-token.outputs.token }}
- name: Verify release branch
run: |
test "$GITHUB_REF" = "refs/heads/main"
- uses: pnpm/action-setup@v4
with:
version: 11.1.2
- uses: actions/setup-node@v6
with:
node-version: 24
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm format:check
- run: pnpm check
- name: Configure release author
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Version, release, and publish changed packages
run: pnpm exec nx release --yes
env:
GITHUB_TOKEN: ${{ steps.release-app-token.outputs.token }}
NPM_CONFIG_PROVENANCE: "true"