Skip to content

Commit 94e37d0

Browse files
committed
Add GitHub actions for releasing create-kpt-functions
1 parent a46faf9 commit 94e37d0

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: release-create-kpt-functions
2+
3+
on:
4+
push:
5+
tags:
6+
- release-create-kpt-functions-*
7+
8+
jobs:
9+
node-ci:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v1
13+
- name: Use Node.js 12.x
14+
uses: actions/setup-node@v1
15+
with:
16+
node-version: 12.x
17+
registry-url: 'https://npm.pkg.github.com'
18+
- name: Install, test
19+
run: |
20+
cd ts/create-kpt-functions
21+
npm ci
22+
npm test
23+
- name: Publish
24+
run: |
25+
cd ts/create-kpt-functions
26+
../../scripts/publish-npm.sh $GITHUB_REF
27+
env:
28+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)