forked from serverless/typescript
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 947 Bytes
/
definitionsBuilder.yml
File metadata and controls
37 lines (31 loc) · 947 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
36
37
name: Definitions Builder
on:
workflow_dispatch:
repository_dispatch:
types: [serverless-released]
jobs:
generateTSDefinitions:
name: Generate serverless/serverless typescript definitions
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Node.js and npm
uses: actions/setup-node@v1
with:
node-version: 18.x
registry-url: https://registry.npmjs.org
- name: Install dependencies
run: npm i
- name: Build plugin
run: npm run build
- name: Publish to GitHub Packages
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Optional: Create GitHub Release
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
generate_release_notes: true