vega-frontend-monorepo/.github/workflows/publish.yml

40 lines
861 B
YAML
Raw Normal View History

2021-12-13 10:27:13 +00:00
---
name: Publish
"on":
push:
2021-12-13 10:35:35 +00:00
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+-pre[0-9]+"
2021-12-13 10:27:13 +00:00
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
2021-12-13 10:28:32 +00:00
node-version: [14.x]
2021-12-13 10:27:13 +00:00
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: |
2021-12-13 10:30:15 +00:00
yarn install --frozen-lockfile
2021-12-13 10:27:13 +00:00
# - name: Lint
# run: |
# npm run lint
2021-12-13 10:27:54 +00:00
# - name: Test
# run: |
# npm test
2021-12-13 10:27:13 +00:00
- name: Push release to npm (public)
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
run: |
2021-12-13 10:30:15 +00:00
yarn publish --access public .