Skip to content

Commit f34eddd

Browse files
author
Elad Ben-Israel
committed
chore: release to npm
1 parent 2f2e5bd commit f34eddd

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,16 @@ jobs:
1717
with:
1818
name: dist
1919
path: dist
20+
release_npm:
21+
name: Release to NPM
22+
needs: build
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Download build artifacts
26+
uses: actions/download-artifact@v1
27+
with:
28+
name: dist
29+
- name: Release
30+
run: npm publish dist/js
31+
env:
32+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.projenrc.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ const project = new TypeScriptLibraryProject({
1414
dependencies: {
1515
'jsii': Semver.pinned('1.1.0'),
1616
'jsii-pacmak': Semver.pinned('1.1.0'),
17-
}
17+
},
18+
releaseToNpm: true
1819
});
1920

2021
project.synth();

0 commit comments

Comments
 (0)