Skip to content

Commit

Permalink
fix(ci): update ship.js trigger to trigger on main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
vinayakkulkarni committed Jul 26, 2020
1 parent 4af921d commit 62e88f3
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/shipjs-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,28 @@ name: Ship js trigger
on:
push:
branches:
- master
- main
jobs:
build:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checkout latest code
uses: actions/checkout@v2
with:
ref: master
- uses: actions/setup-node@v1
fetch-depth: 0
ref: main

- name: Setup node environment
uses: actions/setup-node@v1
with:
registry-url: "https://registry.npmjs.org"
- run: |
if [ -f "yarn.lock" ]; then
yarn install
else
npm install
fi
- run: npx shipjs trigger

- name: Install required dependencies
run: npm install

- name: Run ship.js trigger to build new version
run: npx shipjs trigger
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
Expand Down

0 comments on commit 62e88f3

Please sign in to comment.