Skip to content

Commit

Permalink
add publish alpha version
Browse files Browse the repository at this point in the history
  • Loading branch information
frontegg-david committed Jan 8, 2024
1 parent 708d21e commit d1e4273
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 20 deletions.
2 changes: 0 additions & 2 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ description: Setup Node.js and install dependencies
runs:
using: composite
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
Expand Down
19 changes: 8 additions & 11 deletions .github/workflows/onPullRequestMerged.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ env:
jobs:
lint:
if: "!contains(join(github.event.pull_request.labels.*.name, ','), 'Release') && github.event.pull_request.merged == true"
name: 'Lint and Typecheck'
runs-on: ubuntu-latest
name: 'Lint | Typecheck'
runs-on: macos-12
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -19,16 +19,14 @@ jobs:
uses: ./.github/actions/setup

- name: Lint files
run: yarn lint

- name: Typecheck files
run: yarn typecheck
run: npm run lint

- name: Check licenses
id: check_licenses
run: |
npm install -g license-checker
license-checker --failOn "AGPL-1.0-only;AGPL-1.0-or-later;AGPL-3.0-only;AGPL-3.0-or-later;GPL-1.0-only;GPL-1.0-or-later;GPL-2.0-only;GPL-2.0-or-later;GPL-3.0-only;GPL-3.0-or-later;LGPL-2.0-only;LGPL-2.0-or-later;LGPL-2.1-only;LGPL-2.1-or-later;LGPL-3.0-only;LGPL-3.0-or-later;LGPLLR;MPL-1.1"
createReleasePullRequest:
if: "!contains(join(github.event.pull_request.labels.*.name, ','), 'Release') && github.event.pull_request.merged == true"
name: 'Create Release Pull Request'
Expand Down Expand Up @@ -63,10 +61,8 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
- name: Commit Version UP
run: |
yarn version --patch --no-git-tag-version --no-commit-hooks
- name: Pack Package
run: |
yarn pack
npm version --patch --no-git-tag-version --no-commit-hooks
- name: "Set incremented version"
uses: actions/github-script@v6
id: 'incremented-version'
Expand All @@ -80,6 +76,7 @@ jobs:
shell: bash -ex {0}
run: |
git add . && git commit -m "chore(release): publish ${{ steps.incremented-version.outputs.result }}"
- name: Create Release Pull Request
id: cpr
uses: peter-evans/[email protected]
Expand All @@ -106,7 +103,7 @@ jobs:
git add .
git commit -m "chore: prelrease version"
yarn pack
npm run build
npm publish --tag next
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/onPush.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ jobs:
name: 'Lint | Typecheck'
runs-on: macos-12
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup
uses: ./.github/actions/setup

Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/onReleaseMerged.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Release Merge Workflow
on:
pull_request:

branches:
- master
types: [ closed ]
env:
CI: true
jobs:
Expand All @@ -14,12 +14,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org/
cache: npm
cache-dependency-path: '**/package.json'
- name: Setup
uses: ./.github/actions/setup

- name: Git Identity
run: |
git config --global user.name 'frontegg'
Expand Down

0 comments on commit d1e4273

Please sign in to comment.