1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/.github/workflows/publish-release-npm.yml
Sebastian Malton ac2ce1ba57 # This is a combination of 2 commits.
# This is the 1st commit message:

Upgrade to electron 12 and Node 14

Signed-off-by: Sebastian Malton <sebastian@malton.name>

# This is the commit message #2:

Fix tests

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-08-23 15:54:28 -04:00

34 lines
751 B
YAML

name: Publish NPM Package Release
on:
release:
types:
- published
jobs:
publish:
name: Publish NPM Package Release
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.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 }}