-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (36 loc) · 1.03 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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}}