-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
14 additions
and
16 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,36 +11,34 @@ on: | |
- '**/.npmignore' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 10 | ||
- run: npm i | ||
|
||
publish-npm: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
- name: Checkout develop branch | ||
uses: actions/checkout@v1 | ||
with: | ||
ref: develop | ||
fetch-depth: 1 | ||
- name: Setup node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 10 | ||
registry-url: https://registry.npmjs.org/ | ||
- name: Install dependencies | ||
run: | | ||
npm install | ||
- name: Build packages | ||
run: | | ||
npm run dist | ||
node scripts/cp-pkgs.js | ||
node scripts/verify-pkg-main.js | ||
- name: Creating release | ||
- name: Create release | ||
run: | | ||
lerna version premajor --no-git-tag-version --no-push --preid canary.$(git rev-parse --short HEAD) --yes --exact | ||
npx lerna version premajor --no-git-tag-version --no-push --preid canary.$(git rev-parse --short HEAD) --yes --exact | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git commit -am "chore: Publish" | ||
- name: Publishing to NPM registry | ||
run: lerna publish from-package --yes --dist-tag canary | ||
- name: Publish to NPM registry | ||
run: npx lerna publish from-package --yes --dist-tag canary | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.npm_token}} |