Skip to content

Commit 3b38291

Browse files
committed
fix(devops): we should only publish to npm when the release has been published
1 parent fd06456 commit 3b38291

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

.github/workflows/npm-publish.yml

+2-18
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,10 @@ name: Publish Package to NPM
22

33
on:
44
release:
5-
types: [created]
5+
types: [published]
66

77
jobs:
8-
# build:
9-
# runs-on: ubuntu-latest
10-
# steps:
11-
# - uses: actions/checkout@v4
12-
13-
# - name: Set node
14-
# uses: actions/setup-node@v4
15-
# with:
16-
# node-version: '22.x'
17-
# registry-url: 'https://registry.npmjs.org'
18-
19-
# - run: npm install
20-
# - run: npm ci
21-
# - run: npm test
22-
23-
publish-npm:
24-
# needs: build
8+
build:
259
runs-on: ubuntu-latest
2610
steps:
2711
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)