vega-frontend-monorepo/.github/workflows/publish.yml
2021-12-14 13:16:41 +00:00

40 lines
858 B
YAML

---
name: Publish
"on":
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+-pre[0-9]+"
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org/
- name: Install
run: |
yarn install --frozen-lockfile
- name: Build
run: |
yarn build
- name: Test
run: |
yarn test:coverage
- name: Push release to npm (public)
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
run: |
yarn publish --access public .