|
1 | 1 | name: Release |
2 | 2 |
|
3 | 3 | on: |
| 4 | + workflow_dispatch: |
4 | 5 | pull_request_target: |
5 | 6 | branches: |
6 | 7 | - main |
@@ -30,48 +31,51 @@ jobs: |
30 | 31 | node-version: '24' |
31 | 32 | registry-url: 'https://registry.npmjs.org' |
32 | 33 |
|
33 | | - - name: Configure Git author |
34 | | - run: | |
35 | | - git config --global user.name "Open Terms Archive Release Bot" |
36 | | - git config --global user.email "[email protected]" |
37 | | -
|
38 | | - - name: Update changelog for release |
39 | | - id: release-changelog |
40 | | - uses: OpenTermsArchive/changelog-action/[email protected] |
41 | | - |
42 | | - - name: Bump package version |
43 | | - run: npm --no-git-tag-version version ${{ steps.release-changelog.outputs.version }} |
44 | | - |
45 | | - - name: Commit CHANGELOG.md and package.json changes and create tag |
46 | | - run: | |
47 | | - git add "package.json" |
48 | | - git add "package-lock.json" |
49 | | - git add "CHANGELOG.md" |
50 | | - git commit -m "Release v${{ steps.release-changelog.outputs.version }}" |
51 | | - git tag v${{ steps.release-changelog.outputs.version }} |
52 | | -
|
53 | | - - name: Run status checks for release commit on temporary branch # Use temporary branch to enable pushing commits to this branch protected by required status checks |
54 | | - uses: CasperWA/push-protected@v2 |
55 | | - with: |
56 | | - token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }} |
57 | | - branch: main |
58 | | - unprotect_reviews: true |
59 | | - |
60 | | - - name: Push changes to repository |
61 | | - run: git push origin && git push --tags |
62 | | - |
63 | | - - name: Create GitHub release |
64 | | - uses: softprops/action-gh-release@v1 |
65 | | - with: |
66 | | - tag_name: v${{ steps.release-changelog.outputs.version }} |
67 | | - body: ${{ steps.release-changelog.outputs.content }} |
68 | | - token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }} |
| 34 | + # - name: Configure Git author |
| 35 | + # run: | |
| 36 | + # git config --global user.name "Open Terms Archive Release Bot" |
| 37 | + # git config --global user.email "[email protected]" |
| 38 | + |
| 39 | + # - name: Update changelog for release |
| 40 | + # id: release-changelog |
| 41 | + # uses: OpenTermsArchive/changelog-action/[email protected] |
| 42 | + |
| 43 | + # - name: Bump package version |
| 44 | + # run: npm --no-git-tag-version version ${{ steps.release-changelog.outputs.version }} |
| 45 | + |
| 46 | + # - name: Commit CHANGELOG.md and package.json changes and create tag |
| 47 | + # run: | |
| 48 | + # git add "package.json" |
| 49 | + # git add "package-lock.json" |
| 50 | + # git add "CHANGELOG.md" |
| 51 | + # git commit -m "Release v${{ steps.release-changelog.outputs.version }}" |
| 52 | + # git tag v${{ steps.release-changelog.outputs.version }} |
| 53 | + |
| 54 | + # - name: Run status checks for release commit on temporary branch # Use temporary branch to enable pushing commits to this branch protected by required status checks |
| 55 | + # uses: CasperWA/push-protected@v2 |
| 56 | + # with: |
| 57 | + # token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }} |
| 58 | + # branch: main |
| 59 | + # unprotect_reviews: true |
| 60 | + |
| 61 | + # - name: Push changes to repository |
| 62 | + # run: git push origin && git push --tags |
| 63 | + |
| 64 | + # - name: Create GitHub release |
| 65 | + # uses: softprops/action-gh-release@v1 |
| 66 | + # with: |
| 67 | + # tag_name: v${{ steps.release-changelog.outputs.version }} |
| 68 | + # body: ${{ steps.release-changelog.outputs.content }} |
| 69 | + # token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }} |
69 | 70 |
|
70 | 71 | - name: Update npm |
71 | 72 | run: npm install -g npm@latest |
72 | | - |
| 73 | + |
| 74 | + - name: cat .npmrc |
| 75 | + run: cat .npmrc |
| 76 | + |
73 | 77 | - name: Publish to NPM public repository |
74 | | - run: npm publish |
| 78 | + run: npm publish --dry-run |
75 | 79 |
|
76 | 80 | - name: Trigger documentation deploy |
77 | 81 | uses: peter-evans/repository-dispatch@v2 |
|
0 commit comments