mirror of
https://github.com/ershisan99/live-bundlers.git
synced 2025-12-16 12:33:38 +00:00
31 lines
769 B
YAML
31 lines
769 B
YAML
name: Publish to NPM
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-version: [20]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: pnpm/action-setup@v2
|
|
with:
|
|
version: 8
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
cache: 'pnpm'
|
|
- name: Install dependencies
|
|
run: pnpm install --no-frozen-lockfile
|
|
- name: Build lib
|
|
run: pnpm run build
|
|
- name: Build lib
|
|
run: pnpm run build
|
|
- uses: JS-DevTools/npm-publish@v3
|
|
with:
|
|
token: ${{ secrets.NPM_PUBLISH_TOKEN }}
|
|
access: 'public' |