Skip to content

Commit 37cd736

Browse files
authored
Merge pull request #10 from lmammino/chore/cleaner-npm-publish
chore: Cleaner NPM publish (less duplication)
2 parents ef04991 + edefcaa commit 37cd736

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

.github/workflows/npm-publish.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,7 @@ on:
77
workflow_dispatch
88

99
jobs:
10-
build:
11-
runs-on: ubuntu-latest
12-
steps:
13-
- uses: actions/checkout@v4
14-
- uses: actions/setup-node@v3
15-
with:
16-
node-version: 20
17-
- run: npm install
18-
- run: npm run build
19-
- run: cp cdk.json.built cdk.json
20-
21-
publish-npm:
22-
needs: build
10+
build-and-publish:
2311
runs-on: ubuntu-latest
2412
steps:
2513
- uses: actions/checkout@v4
@@ -29,7 +17,7 @@ jobs:
2917
registry-url: https://registry.npmjs.org/
3018
- run: npm install
3119
- run: npm run build
32-
- run: cp cdk.json.built cdk.json
20+
- run: cp cdk.json.built cdk.json
3321
- run: npm pack
3422
- run: npm publish --access=public
3523
env:

0 commit comments

Comments
 (0)