Update npm-publish.yml #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: Push to master checks | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push or pull request events but only for the "master" branch | |
push: | |
branches: [ "master" ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
hacs: | |
runs-on: "ubuntu-latest" | |
name: TSC and release | |
steps: | |
- name: Check out the repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- run: npm install | |
- run: tsc | |
- name: Automatic GitHub Release | |
uses: marcokreeft87/github-action-npm-release@1.0.0 | |
- name: Print release output | |
if: ${{ steps.release.outputs.released == 'true' }} | |
run: echo Release ID ${{ steps.release.outputs.release_id }} |