File tree Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Original file line number Diff line number Diff line change 15
15
if : github.repository == 'remix-run/react-router' && github.event.label.name == 'alpha-release'
16
16
runs-on : ubuntu-latest
17
17
steps :
18
- - name : Log Event Info
18
+ - name : π Log Info
19
19
run : |
20
20
echo "Label: ${{ github.event.label.name }}"
21
21
echo "Branch: ${{ github.event.pull_request.head.ref }}"
@@ -57,19 +57,17 @@ jobs:
57
57
- name : π Build
58
58
run : pnpm build
59
59
60
- - name : Check
60
+ - name : π Setup npm auth
61
61
run : |
62
- echo "Version: ${{ steps.version.outputs.version }}"
63
- git status
64
- cat packages/react-router/package.json
65
- cat packages/react-router-dev/package.json
66
- ls packages/react-router/dist
67
- ls packages/react-router-dev/dist
62
+ echo "registry=https://registry.npmjs.org" >> ~/.npmrc
63
+ echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc
68
64
69
- # - name: π Setup npm auth
70
- # run: |
71
- # echo "registry=https://registry.npmjs.org" >> ~/.npmrc
72
- # echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc
65
+ - name : π Publish
66
+ run : pnpm run publish
73
67
74
- # - name: π Publish
75
- # run: pnpm run publish
68
+ - name : π¬ Comment
69
+ env :
70
+ GH_TOKEN : ${{ github.token }}
71
+ run : |
72
+ gh pr comment ${{ github.event.pull_request.number }} --body "Alpha release created: `${{ steps.version.outputs.version }}`"
73
+ gh pr edit ${{ github.event.pull_request.number }} --remove-label ${{ github.event.label.name }}
You canβt perform that action at this time.
0 commit comments