Skip to content

Merge pull request #55 from pengooseDev/pengooseDev #14

Merge pull request #55 from pengooseDev/pengooseDev

Merge pull request #55 from pengooseDev/pengooseDev #14

name: Build and Release
on:
push:
branches:
- master
paths:
- 'apps/www/public/registry/index.json'
- 'packages/cli/**'
permissions:
contents: write
issues: write
pull-requests: write
jobs:
build-and-release:
if: ${{ github.repository_owner == 'jakobhoeg' }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
working-directory: packages/cli
- name: Build package
run: npm run build
working-directory: packages/cli
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
working-directory: packages/cli