Skip to content

Commit

Permalink
ci: single publish action template (#118)
Browse files Browse the repository at this point in the history
* rename yml to yaml

* ci: single publish action template

* chore: add alpha publish scripts

---------

Co-authored-by: Eugene Chybisov <imchybisov@gmail.com>
  • Loading branch information
Marco and chybisov authored Aug 8, 2023
1 parent b27b513 commit 0e8dd91
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 40 deletions.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ name: Release & Publish Beta
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+'
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -32,6 +34,7 @@ jobs:
- name: Build
run: yarn release:build
- name: Publish to npm
run: yarn release:publish:beta
run: |
yarn release:publish${{ contains(github.ref_name, 'alpha') && ':alpha' || contains(github.ref_name, 'beta') && ':beta' || '' }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
37 changes: 0 additions & 37 deletions .github/workflows/publish.yml

This file was deleted.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@
"start": "lerna run start",
"build": "lerna run build",
"release": "yarn release:version:before && yarn release:version && yarn release:version:after && yarn standard-version -a",
"release:beta": "yarn release:version:before && yarn release:version && yarn release:version:after && yarn standard-version -a --prerelease beta --skip.changelog",
"release:version": "lerna version --preid beta --no-changelog --no-push --no-git-tag-version --no-private",
"release:alpha": "yarn release:version:before && yarn release:version --preid alpha && yarn release:version:after && yarn standard-version -a --prerelease alpha --skip.changelog",
"release:beta": "yarn release:version:before && yarn release:version --preid beta && yarn release:version:after && yarn standard-version -a --prerelease beta --skip.changelog",
"release:version": "lerna version --no-changelog --no-push --no-git-tag-version --no-private",
"release:version:before": "node scripts/private-version before",
"release:version:after": "yarn release:build && node scripts/private-version after",
"release:build": "lerna run build --no-private",
"release:publish": "lerna publish from-package --dist-tag latest --contents build --no-verify-access --yes",
"release:publish:alpha": "lerna publish from-package --dist-tag alpha --contents build --no-verify-access --yes",
"release:publish:beta": "lerna publish from-package --dist-tag beta --contents build --no-verify-access --yes"
},
"standard-version": {
Expand Down

0 comments on commit 0e8dd91

Please sign in to comment.