File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments