BREAKING: Switched from conventional-changelog-cli
to `google-githu…
#9
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
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
name: Create release | |
on: | |
push: | |
branches: | |
- develop | |
env: | |
ARTIFACT_NAME: Olympus.yymps | |
CHANGELOG_NAME: CHANGELOG.md | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
release: | |
runs-on: 'ubuntu-latest' | |
name: Create a release | |
steps: | |
- uses: google-github-actions/release-please-action@v4 | |
id: release | |
with: | |
# this is a built-in strategy in release-please, see "Action Inputs" | |
# for more options | |
release-type: node | |
- uses: actions/checkout@v4 | |
if: ${{ steps.release.outputs.release_created }} | |
- uses: actions/setup-node@v4 | |
if: ${{ steps.release.outputs.release_created }} | |
with: | |
node-version: '16.x' | |
registry-url: 'https://registry.npmjs.org' | |
cache: 'npm' | |
- run: npm install && npx yymps-export | |
if: ${{ steps.release.outputs.release_created }} | |
- name: Upload Release Artifact | |
if: ${{ steps.release.outputs.release_created }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: gh release upload ${{ steps.release.outputs.tag_name }} ${{env.ARTIFACT_NAME}} |