Release #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |