Skip to content

Commit 0b084c2

Browse files
authored
Merge pull request #53 from hirosystems/devops-2230
ci: support npm trusted publishers
2 parents 4725036 + dad3a01 commit 0b084c2

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
lint:
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@v5
2121

2222
- name: Use Node.js
23-
uses: actions/setup-node@v4
23+
uses: actions/setup-node@v6
2424
with:
2525
node-version-file: '.nvmrc'
2626

@@ -57,12 +57,12 @@ jobs:
5757
PGPASSWORD: postgres
5858
PGDATABASE: postgres
5959
steps:
60-
- uses: actions/checkout@v4
60+
- uses: actions/checkout@v5
6161
with:
6262
fetch-depth: 0
6363

6464
- name: Use Node.js
65-
uses: actions/setup-node@v4
65+
uses: actions/setup-node@v6
6666
with:
6767
node-version-file: '.nvmrc'
6868

@@ -94,7 +94,7 @@ jobs:
9494
run: npm run test -- --coverage
9595

9696
- name: Upload coverage to Codecov
97-
uses: codecov/codecov-action@v3
97+
uses: codecov/codecov-action@v5
9898

9999
- name: Print integration environment logs
100100
run: cat docker-compose-logs.txt
@@ -107,6 +107,7 @@ jobs:
107107
build-publish:
108108
permissions:
109109
contents: write
110+
id-token: write
110111
issues: write
111112
pull-requests: write
112113
runs-on: ubuntu-latest
@@ -116,14 +117,13 @@ jobs:
116117
steps:
117118
- name: Generate release bot app token
118119
id: generate_token
119-
uses: actions/create-github-app-token@v1
120+
uses: actions/create-github-app-token@v2
120121
with:
121122
app-id: ${{ secrets.HIROSYSTEMS_RELEASE_BOT_ID }}
122123
private-key: ${{ secrets.HIROSYSTEMS_RELEASE_BOT_PEM }}
123124

124-
- uses: actions/checkout@v4
125+
- uses: actions/checkout@v5
125126
with:
126-
token: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}
127127
fetch-depth: 0
128128
persist-credentials: false
129129
- name: Get bot user ID
@@ -133,7 +133,7 @@ jobs:
133133
env:
134134
GH_TOKEN: ${{ steps.generate_token.outputs.token }}
135135

136-
- uses: actions/setup-node@v4
136+
- uses: actions/setup-node@v6
137137
with:
138138
node-version-file: '.nvmrc'
139139

@@ -144,18 +144,16 @@ jobs:
144144
run: npm run build
145145

146146
- name: Semantic Release
147-
uses: cycjimmy/semantic-release-action@v4
147+
uses: cycjimmy/semantic-release-action@9cc899c47e6841430bbaedb43de1560a568dfd16 # v5
148148
# Only run on non-PR events or only PRs that aren't from forks
149149
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
150150
env:
151151
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
152-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
153152
SEMANTIC_RELEASE_PACKAGE: ${{ github.event.repository.name }}
154153
GIT_AUTHOR_EMAIL: "${{ steps.bot-user-id.outputs.user-id }}+${{ steps.generate_token.outputs.app-slug }}[bot]@users.noreply.github.com"
155154
GIT_COMMITTER_EMAIL: "${{ steps.bot-user-id.outputs.user-id }}+${{ steps.generate_token.outputs.app-slug }}[bot]@users.noreply.github.com"
156155
with:
157-
semantic_version: 19
158156
extra_plugins: |
159157
@semantic-release/[email protected]
160158
@semantic-release/[email protected]
161-
conventional-changelog-conventionalcommits@6.1.0
159+
conventional-changelog-conventionalcommits@9.1.0

0 commit comments

Comments
 (0)