Skip to content

fix: filename with multiple dots (#597) #110

fix: filename with multiple dots (#597)

fix: filename with multiple dots (#597) #110

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'