|
6 | 6 | branches: |
7 | 7 | - main |
8 | 8 |
|
| 9 | +permissions: {} |
| 10 | + |
9 | 11 | jobs: |
10 | 12 | verify: |
11 | 13 | if: github.event_name != 'push' || !contains(github.event.head_commit.message, '[skip ci]') |
|
20 | 22 |
|
21 | 23 | steps: |
22 | 24 | - name: Check out repository |
23 | | - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 |
| 25 | + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
24 | 26 | with: |
25 | 27 | fetch-depth: 0 |
26 | 28 | persist-credentials: false |
@@ -52,22 +54,23 @@ jobs: |
52 | 54 | deployment: false |
53 | 55 | permissions: |
54 | 56 | contents: read |
| 57 | + id-token: write |
55 | 58 |
|
56 | 59 | steps: |
57 | 60 | - name: Create release bot token |
58 | 61 | id: release-bot |
59 | | - uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3 |
| 62 | + uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1 |
60 | 63 | with: |
61 | 64 | client-id: ${{ vars.PUTIO_RELEASE_BOT_CLIENT_ID }} |
62 | 65 | private-key: ${{ secrets.PUTIO_RELEASE_BOT_PRIVATE_KEY }} |
63 | 66 | permission-contents: write |
64 | 67 | permission-issues: write |
65 | 68 | permission-pull-requests: write |
66 | 69 | - name: Check out repository |
67 | | - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 |
| 70 | + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
68 | 71 | with: |
69 | 72 | fetch-depth: 0 |
70 | | - token: ${{ steps.release-bot.outputs.token }} |
| 73 | + persist-credentials: false |
71 | 74 |
|
72 | 75 | - name: Set up Vite+ |
73 | 76 | uses: voidzero-dev/setup-vp@ca1c46663915d6c1042ae23bd39ab85718bfb0fa # v1.10.0 |
|
78 | 81 | - name: Install dependencies |
79 | 82 | run: vp install |
80 | 83 |
|
| 84 | + - name: Configure release bot remote |
| 85 | + run: git remote set-url origin "https://x-access-token:${RELEASE_BOT_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" |
| 86 | + env: |
| 87 | + RELEASE_BOT_TOKEN: ${{ steps.release-bot.outputs.token }} |
| 88 | + |
81 | 89 | - name: Release package |
82 | 90 | uses: cycjimmy/semantic-release-action@b12c8f6015dc215fe37bc154d4ad456dd3833c90 # v6.0.0 |
83 | 91 | with: |
|
90 | 98 | conventional-changelog-conventionalcommits@9.3.1 |
91 | 99 | env: |
92 | 100 | GITHUB_TOKEN: ${{ steps.release-bot.outputs.token }} |
93 | | - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
94 | 101 | GIT_AUTHOR_NAME: ${{ steps.release-bot.outputs.app-slug }}[bot] |
95 | 102 | GIT_AUTHOR_EMAIL: ${{ steps.release-bot.outputs.app-slug }}[bot]@users.noreply.github.com |
96 | 103 | GIT_COMMITTER_NAME: ${{ steps.release-bot.outputs.app-slug }}[bot] |
|
0 commit comments