Skip to content

Commit 0f7b270

Browse files
actions: Checkout the repository in gh-release.yml
1 parent b42cc31 commit 0f7b270

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

.github/workflows/gh-release.yml

+15-3
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,25 @@ on:
88

99
jobs:
1010
tagged-release:
11-
name: Tagged release
1211
runs-on: ubuntu-latest
1312

1413
steps:
14+
# Checkout the exact commit tagged on the release.
15+
- name: Checkout repository
16+
uses: actions/checkout@v3
17+
with:
18+
ref: ${{ github.event.release.target_commitish }}
19+
20+
- name: Use NodeJS
21+
uses: actions/setup-node@v3
22+
with:
23+
node-version: 18.x
24+
1525
# If we can't build the release will be canceled.
16-
- name: Build
17-
run: npm run build
26+
- name: Install dependencies and build
27+
run: |
28+
npm install
29+
npm run build
1830
1931
- uses: marvinpinto/action-automatic-releases@latest
2032
with:

.github/workflows/npm-release.yml

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
jobs:
88
release:
99
runs-on: ubuntu-latest
10+
1011
steps:
1112
# Checkout the exact commit tagged on the release.
1213
- name: Checkout repository

0 commit comments

Comments
 (0)