Skip to content

Commit 998b875

Browse files
gr2mparkerbxyz
andauthored
ci(release): use local version (#60)
follow up to #59 (comment) --------- Co-authored-by: Parker Brown <[email protected]>
1 parent b94a200 commit 998b875

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/release.yml

+10-5
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,21 @@ jobs:
1414
name: release
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/create-github-app-token@v1
17+
# build local version to create token
18+
- uses: actions/checkout@v4
19+
- uses: actions/setup-node@v3
20+
with:
21+
node-version: 20
22+
cache: "npm"
23+
- run: npm ci
24+
- run: npm run build
25+
- uses: ./
1826
id: app-token
1927
with:
2028
app-id: ${{ vars.RELEASER_APP_ID }}
2129
private-key: ${{ secrets.RELEASER_APP_PRIVATE_KEY }}
22-
- uses: actions/checkout@v4
23-
with:
24-
token: ${{ steps.app-token.outputs.token }}
30+
# install release dependencies and release
2531
- run: npm install --no-save @semantic-release/git semantic-release-plugin-github-breaking-version-tag
26-
- run: npm run build
2732
- run: npx semantic-release --debug
2833
env:
2934
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}

0 commit comments

Comments
 (0)