We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d978d7 commit d0d458fCopy full SHA for d0d458f
1 file changed
.github/workflows/npm.yml
@@ -9,25 +9,19 @@ permissions:
9
contents: read
10
11
jobs:
12
- build:
+ publish:
13
runs-on: ubuntu-latest
14
steps:
15
- uses: actions/checkout@v4
16
- - uses: actions/setup-node@v4
17
- with:
18
- node-version: 20
19
- - run: npm install -g npm@latest
20
- - run: npm ci
21
- - run: npm test
22
23
- publish-npm:
24
- needs: build
25
- runs-on: ubuntu-latest
26
- steps:
27
- - uses: actions/checkout@v4
28
- uses: actions/setup-node@v4
29
with:
30
31
- registry-url: https://registry.npmjs.org/
+ node-version: "20"
+ registry-url: "https://registry.npmjs.org"
+
+ - name: Update npm
+ run: npm install -g npm@latest
32
- run: npm ci
+ - run: npm run build --if-present
+ - run: npm test
33
- run: npm publish
0 commit comments