Merge pull request #18 from fp-tx/ja/source-files #52
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: Build Publish Main | |
on: | |
push: | |
branches: | |
- main | |
- $default-branch | |
workflow_dispatch: | |
jobs: | |
build-and-publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
token: ${{secrets.ACTIONS_PAT}} | |
- name: Install Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
run_install: | | |
- args: [--frozen-lockfile, --strict-peer-dependencies] | |
- name: Bump Package Version | |
id: bumping-version | |
uses: jpb06/bump-package@latest | |
with: | |
major-keywords: PUBLISH MAJOR VERSION | |
minor-keywords: BREAKING CHANGE,feat | |
patch-keywords: build,chore,ci,docs,fix,perf,refactor,revert,style,test | |
- name: Publish Main Version | |
if: steps.bumping-version.outputs.bump-performed == 'true' | |
run: pnpm run release:main | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |