Skip to content

Commit 9e7f417

Browse files
"Rename 'build' job to 'publish', remove 'publish-npm' job and merge its steps into 'publish' job, and remove artifact upload and download steps."
1 parent 5d37bf2 commit 9e7f417

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

.github/workflows/npm-publish.yml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
types: [created]
99

1010
jobs:
11-
build:
11+
publish:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v4
@@ -18,24 +18,9 @@ jobs:
1818
- run: npm ci
1919
- run: npm run build
2020

21-
- uses: actions/upload-artifact@v3
22-
with:
23-
name: app-build
24-
path: dist
25-
26-
publish-npm:
27-
needs: build
28-
runs-on: ubuntu-latest
29-
steps:
30-
- uses: actions/checkout@v4
31-
- uses: actions/setup-node@v4
3221
with:
3322
node-version: 20
3423
registry-url: https://registry.npmjs.org/
35-
36-
- uses: actions/download-artifact@v3
37-
with:
38-
name: app-build
3924

4025
- run: npm ci
4126
- run: npm publish

0 commit comments

Comments
 (0)