Skip to content

Commit

Permalink
chore: Trigger GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
abhiomkar committed Oct 17, 2019
1 parent e94288f commit edbea97
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}

0 comments on commit edbea97

Please sign in to comment.