Skip to content

Commit ec3e410

Browse files
seanlandsmanStephenCooper
authored andcommitted
Update release process
1 parent 241685f commit ec3e410

2 files changed

Lines changed: 20 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ on:
66
- main
77
types: [closed]
88

9+
env:
10+
CI: true
11+
DEPLOYMENT_APP_ID: 957224
12+
913
permissions:
14+
id-token: write # Required for OIDC
1015
contents: read
1116

1217
jobs:
@@ -16,6 +21,12 @@ jobs:
1621
runs-on: ubuntu-latest
1722
if: github.event.pull_request.merged
1823
steps:
24+
- name: Authenticate with GitHub App
25+
uses: actions/create-github-app-token@v1
26+
id: app-token
27+
with:
28+
app-id: ${{ env.DEPLOYMENT_APP_ID }}
29+
private-key: ${{ secrets.DEPLOYMENT_APP_PRIVATE_KEY }}
1930
- name: Checkout Git repository
2031
uses: actions/checkout@v4
2132
- name: Install pnpm
@@ -40,14 +51,17 @@ jobs:
4051
id: create_release
4152
uses: actions/create-release@latest
4253
env:
43-
GITHUB_TOKEN: ${{ github.token }}
54+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
4455
with:
4556
commitish: ${{ github.ref }}
4657
tag_name: ${{ steps.version.outputs.VERSION }}
4758
release_name: ${{ steps.version.outputs.VERSION }}
4859
draft: false
4960
prerelease: false
61+
# Ensure npm 11.5.1 or later is installed - required for OIDC
62+
- name: Update npm
63+
run: npm install -g npm@latest
5064
- name: Publish package
51-
run: pnpm run publish
52-
env:
53-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
65+
run: |
66+
cd packages/cli
67+
npm run publish

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
/packages/*/vitest.config.mts.timestamp-*.mjs
55
/coverage/
66
/docs/
7-
**/_temp/**/*
7+
**/_temp/**/*
8+
.idea

0 commit comments

Comments
 (0)