Skip to content

Commit d6a4aeb

Browse files
authored
Combine some jobs in unstable publish workflow (#2883)
Workflow is not being triggered as expected
1 parent fd9533f commit d6a4aeb

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

.github/workflows/npm-publish-unstable.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,16 @@ jobs:
3232
- 'index.d.ts'
3333
- 'index.js'
3434
35-
# pause for 30 minutes to avoid publishing more than 2x per hour
36-
debounce:
37-
name: Publish max 2x per hour
35+
test:
36+
name: Run tests and publish unstable
3837
if: needs.paths-filter.outputs.src == 'true'
3938
runs-on: ubuntu-latest
4039
steps:
40+
# pause for 30 minutes to avoid publishing more than 2x per hour
4141
- name: Debounce 30 minutes
4242
uses: zachary95/github-actions-debounce@ab7363483e2837992b8aa6be891763da00ac14f9 # v0.1.0
4343
with:
4444
wait: 1800
45-
46-
# run tests prior to publish to ensure some stability
47-
test:
48-
name: Run tests
49-
needs: debounce
50-
runs-on: ubuntu-latest
51-
steps:
5245
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
5346
with:
5447
persist-credentials: false
@@ -57,9 +50,12 @@ jobs:
5750
with:
5851
node-version: "22.x"
5952
registry-url: "https://registry.npmjs.org"
60-
- run: npm install -g npm
61-
- run: npm install
62-
- run: npm test
53+
- name: Install dependencies
54+
run: |
55+
npm install -g npm
56+
npm install
57+
- name: Run tests
58+
run: npm test
6359

6460
# if tests pass, publish unstable
6561
publish:

0 commit comments

Comments
 (0)