Skip to content

Commit df1bbfc

Browse files
committed
build: enable auto-publish
1 parent fe414c4 commit df1bbfc

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,21 @@ jobs:
5050
with:
5151
name: dist
5252
path: dist
53+
release_npm:
54+
name: Release to NPM
55+
needs: build
56+
runs-on: ubuntu-latest
57+
container:
58+
image: jsii/superchain
59+
steps:
60+
- name: Download build artifacts
61+
uses: actions/download-artifact@v2
62+
with:
63+
name: dist
64+
path: dist
65+
- name: Release
66+
run: npx -p jsii-release@latest jsii-release-npm
67+
env:
68+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
69+
NPM_DIST_TAG: latest
70+
NPM_REGISTRY: registry.npmjs.org

.projenrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const project = new TypeScriptProject({
2626
repository: 'https://github.com/RossWilliams/ts-case-convert.git',
2727
codeCov: true /* Define a GitHub workflow step for sending code coverage metrics to https://codecov.io/ Uses codecov/codecov-action@v1 A secret is required for private repos. Configured with @codeCovTokenSecret. */,
2828
codeCovTokenSecret: 'CODECOV_TOKEN',
29+
releaseToNpm: true,
2930
license: 'Apache-2.0',
3031
projectType: ProjectType.LIBRARY,
3132
tsconfig: {

0 commit comments

Comments
 (0)