Skip to content

Commit 043a714

Browse files
authored
Switch to new reusable workflow for release publishing
1 parent a1d7a84 commit 043a714

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,4 @@ jobs:
2020
publish-prerelease:
2121
needs: run-tests
2222
if: ${{ github.event_name == 'push' }}
23-
concurrency: prr:pre-release
24-
runs-on: ubuntu-latest
25-
steps:
26-
- uses: actions/checkout@v4
27-
- uses: actions/setup-node@v4
28-
with:
29-
node-version: 20
30-
- run: npm ci
31-
- run: npm run build
32-
- run: npx pr-release pr --verbose --target release --source main --compact --verbose --minimize-semver-change
33-
env:
34-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
35-
# The following will publish a prerelease to npm
36-
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
37-
name: Setup NPM Auth
38-
env:
39-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
40-
- run: npx pr-release infer-prerelease --preid=next --target release --source main --verbose --publish --minimize-semver-change
41-
name: Publish
23+
uses: ./.github/workflows/publish-prerelease.yml

0 commit comments

Comments
 (0)