Skip to content

Commit d0d458f

Browse files
committed
Use default NPM action
1 parent 6d978d7 commit d0d458f

1 file changed

Lines changed: 8 additions & 14 deletions

File tree

.github/workflows/npm.yml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,19 @@ permissions:
99
contents: read
1010

1111
jobs:
12-
build:
12+
publish:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- 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
2216

23-
publish-npm:
24-
needs: build
25-
runs-on: ubuntu-latest
26-
steps:
27-
- uses: actions/checkout@v4
2817
- uses: actions/setup-node@v4
2918
with:
30-
node-version: 20
31-
registry-url: https://registry.npmjs.org/
19+
node-version: "20"
20+
registry-url: "https://registry.npmjs.org"
21+
22+
- name: Update npm
23+
run: npm install -g npm@latest
3224
- run: npm ci
25+
- run: npm run build --if-present
26+
- run: npm test
3327
- run: npm publish

0 commit comments

Comments
 (0)