forked from cdklabs/jsii-srcmak
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (35 loc) · 881 Bytes
/
release.yml
File metadata and controls
35 lines (35 loc) · 881 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Generated by projen. To modify, edit .projenrc.js and run "npx projen".
name: Release
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npx projen@0.3.5
- run: yarn install --frozen-lockfile
- run: yarn build
- name: Anti-tamper check
run: git diff --exit-code
- name: Upload artifact
uses: actions/upload-artifact@v1
with:
name: dist
path: dist
release_npm:
name: Release to NPM
needs: build
runs-on: ubuntu-latest
steps:
- name: Download build artifacts
uses: actions/download-artifact@v1
with:
name: dist
- name: Release
run: npx -p jsii-release jsii-release-npm
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_DIST_TAG: latest