Skip to content

Merge pull request #17 from beyonk-group/dependabot/npm_and_yarn/mini… #76

Merge pull request #17 from beyonk-group/dependabot/npm_and_yarn/mini…

Merge pull request #17 from beyonk-group/dependabot/npm_and_yarn/mini… #76

Workflow file for this run

name: publish
on:
push:
branches:
- '*'
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: master
- uses: volta-cli/action@v4
- name: Cache pnpm modules
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- uses: pnpm/[email protected]
with:
run_install: true
- run: pnpm lint
publish-npm:
if: startsWith(github.ref, 'refs/tags/v')
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: master
- uses: volta-cli/action@v4
- name: Authorize NPM
run: npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
- name: Cache pnpm modules
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- uses: pnpm/[email protected]
with:
run_install: true
- run: pnpm publish