fix: case insensitive filenames (#513) #73
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: Tag + Release NPM | |
on: | |
push: | |
branches: [master] | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
# Map a step output to a job output | |
outputs: | |
new_release_published: ${{ steps.semantic.outputs.new_release_published }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Node.js, NPM and Yarn | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 14 | |
- name: build code | |
run: npm i && npm run compile | |
- name: Semantic Release | |
id: semantic | |
uses: cycjimmy/semantic-release-action@v3 | |
with: | |
branch: master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Do something when a new release published | |
if: steps.semantic.outputs.new_release_published == 'true' | |
run: | | |
echo "::set-output name=new_release_published::true" | |
echo ${{ steps.semantic.outputs.new_release_version }} | |
echo ${{ steps.semantic.outputs.new_release_major_version }} | |
echo ${{ steps.semantic.outputs.new_release_minor_version }} | |
echo ${{ steps.semantic.outputs.new_release_patch_version }} | |
# | |
# build-packages: | |
# runs-on: ${{ matrix.os }} | |
# needs: release | |
# if: needs.release.outputs.new_release_published == 'true' | |
# strategy: | |
# matrix: | |
# os: [macos-latest, ubuntu-latest, windows-2019] | |
# steps: | |
# - name: Check out Git repository | |
# uses: actions/checkout@v1 | |
# - name: Install Node.js, NPM and Yarn | |
# uses: actions/setup-node@v1 | |
# with: | |
# node-version: 14 | |
# - name: Build/release Electron app | |
# uses: samuelmeuli/action-electron-builder@v1 | |
# with: | |
# # GitHub token, automatically provided to the action | |
# # (No need to define this secret in the repo settings) | |
# github_token: ${{ secrets.github_token }} | |
# # If the commit is tagged with a version (e.g. "v1.0.0"), | |
# # release the app after building | |
# release: true | |
# build_script_name: 'compile' |