Skip to content

Merge pull request #25 from tfso/bugfix/no-optional-for-strict-js #128

Merge pull request #25 from tfso/bugfix/no-optional-for-strict-js

Merge pull request #25 from tfso/bugfix/no-optional-for-strict-js #128

Workflow file for this run

name: Build
on:
push:
branches:
- '**'
tags-ignore:
- '*.*'
workflow_dispatch:
inputs:
deploy:
type: boolean
required: true
description: Deploy package
jobs:
build:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.npm.outputs.version }}
prerelease: ${{ steps.npm.outputs.prerelease }}
deploy: ${{ steps.npm.outputs.deploy }}
steps:
- name: build npm package
uses: tfso/action-helpers/npm-build@v1
id: npm
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TFSO_TOKEN }}
FONT_AWESOME_TOKEN: ${{ secrets.FONT_AWESOME_TOKEN }}
NODE_VERSION: 16
TRUNCATE_PRERELEASE: true
tag:
if: needs.build.outputs.deploy == 'true' || github.event.inputs.deploy == 'true'
needs: build
runs-on: ubuntu-latest
name: push tag
steps:
- name: checkout
uses: actions/checkout@v3
- name: push tag
uses: tfso/action-helpers/tag@v1
with:
GITHUB_TOKEN: ${{ secrets.TFSO_REPO_TAG }}
tag: ${{ needs.build.outputs.version }}