2020-03-03 17:59:19 -05:00
|
|
|
name: Canary Release to Verdaccio
|
|
|
|
|
2020-06-24 05:28:00 -05:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- .github/workflows/release-canary.yml
|
|
|
|
- 'packages/**'
|
|
|
|
- 'package.json'
|
|
|
|
- 'lerna.json'
|
2020-03-03 17:59:19 -05:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
name: Release
|
2020-09-01 14:22:36 -05:00
|
|
|
runs-on: ubuntu-latest
|
2020-03-03 17:59:19 -05:00
|
|
|
steps:
|
2020-09-01 14:22:36 -05:00
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Use Node (latest)
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node_version: 13
|
|
|
|
- name: Install
|
|
|
|
run: yarn --frozen-lockfile
|
|
|
|
- name: Clean
|
|
|
|
run: yarn clean
|
|
|
|
- name: Lint
|
|
|
|
run: yarn lint
|
|
|
|
- name: Build
|
|
|
|
run: yarn build
|
|
|
|
- name: Test
|
|
|
|
run: yarn test
|
|
|
|
- name: Publish
|
|
|
|
run: |
|
|
|
|
echo "//registry.verdaccio.org/:_authToken=${{ secrets.VERDACCIO_TOKEN }}" > .npmrc
|
|
|
|
git update-index --assume-unchanged .npmrc
|
|
|
|
yarn publish:canary
|