Skip to content

Commit

Permalink
Merge pull request #4 from Gozala/automate-build
Browse files Browse the repository at this point in the history
feat: automate builds
  • Loading branch information
Gozala authored Oct 19, 2020
2 parents 5840561 + 447ac45 commit a103de6
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,25 @@ jobs:
uses: ./
with:
project: projectFixtures/sub
publish:
name: Release
needs: test
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/default'
steps:
- uses: actions/checkout@v2
- name: Restore dependencies
id: cache-modules
uses: actions/cache@v1
with:
path: node_modules
key: 12.x-${{ runner.OS }}-build-${{ hashFiles('package.json') }}
- name: Install
if: steps.cache-modules.outputs.cache-hit != 'true'
run: yarn install
- name: Build
uses: tool3/ncc@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
src: 'src/index.ts'
branch: release

0 comments on commit a103de6

Please sign in to comment.