1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/.github/workflows/publish-npm.yml
Jari Kolehmainen bf96e6ef4c
Publish npm package via gh actions (#2695)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-05-04 09:47:52 -04:00

34 lines
719 B
YAML

name: Publish NPM
on:
release:
types:
- published
jobs:
publish:
name: Publish NPM
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- name: Checkout Release
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Using Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Generate NPM package
run: |
make build-npm
- name: publish new release
if: contains(github.ref, 'refs/tags/v')
run: |
make publish-npm
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}