support for all note-attributes defined in the ENEX DTD 3.0 (#659) #137
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/[email protected] | |
- name: Install Node.js, NPM and Yarn | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- 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-13, 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@v4 | |
# with: | |
# node-version: 16 | |
# - name: Electron Builder Action(Using Node 20) | |
# uses: vingeraycn/[email protected] | |
# 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' |