Skip to content

Commit 3838159

Browse files
authored
Revert commit 043a714 to unbreak prereleases
Signed-off-by: Claudia Meadows <contact@claudiameadows.dev>
1 parent a239c77 commit 3838159

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.github/workflows/test.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,22 @@ jobs:
2020
publish-prerelease:
2121
needs: run-tests
2222
if: ${{ github.event_name == 'push' }}
23-
uses: ./.github/workflows/publish-prerelease.yml
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

0 commit comments

Comments
 (0)