-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (39 loc) · 1.13 KB
/
release.yml
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
38
39
40
41
name: Release
on:
workflow_dispatch:
inputs:
version_scale:
type: choice
description: Release Scale
options:
- patch
- minor
- major
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.THUNDRA_GITHUB_ACCESS_TOKEN }}
- name: Configure Git User
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Action"
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: "18.x"
registry-url: https://registry.npmjs.org
- name: Install rimraf
run: npm i -g rimraf
- name: NPM Install for Lambda
run: npm install -f ./functions --prefix ./functions
- name: NPM Install
run: npm install
- name: NPM Publish
run: npm run release
env:
VERSION_SCALE: ${{ github.event.inputs.version_scale }}
NODE_AUTH_TOKEN: ${{ secrets.THUNDRA_NPM_API_KEY }}
GITHUB_TOKEN: ${{ secrets.THUNDRA_GITHUB_ACCESS_TOKEN }}