Skip to content

Commit b07cdb7

Browse files
JAForbesdead-claudia
authored andcommitted
Use new pr-release prerelease hook (Fixes #2987)
1 parent e10ab83 commit b07cdb7

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/push-release.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,11 @@ jobs:
2020
node-version: 20
2121
- run: npm ci
2222
- run: npm run build
23-
- run: npx pr-release merge --target release --source main --commit --force --clean --changelog ./docs/recent-changes.md --compact --minimize-semver-change
24-
env:
25-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
26-
- run: bash scripts/set-versioned-branch.sh release
27-
# The following will publish the release to npm
2823
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
2924
name: Setup NPM Auth
3025
env:
3126
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
32-
- run: npm publish
33-
name: Publish
27+
- run: npx pr-release merge --target release --source main --commit --force --clean --changelog ./docs/recent-changes.md --compact --minimize-semver-change --prerelease="npm publish"
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
30+
- run: bash scripts/set-versioned-branch.sh release

0 commit comments

Comments
 (0)