Skip to content

Commit eecb42f

Browse files
committed
Add publish/comment steps
1 parent e235db3 commit eecb42f

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

β€Ž.github/workflows/release-stage-2-alpha.yml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
if: github.repository == 'remix-run/react-router' && github.event.label.name == 'alpha-release'
1616
runs-on: ubuntu-latest
1717
steps:
18-
- name: Log Event Info
18+
- name: πŸ“„ Log Info
1919
run: |
2020
echo "Label: ${{ github.event.label.name }}"
2121
echo "Branch: ${{ github.event.pull_request.head.ref }}"
@@ -57,19 +57,17 @@ jobs:
5757
- name: πŸ— Build
5858
run: pnpm build
5959

60-
- name: Check
60+
- name: πŸ” Setup npm auth
6161
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
6864
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
7367

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 }}

0 commit comments

Comments
Β (0)