Skip to content

build: add step to copy package.json to dist directory in release wor… #14

build: add step to copy package.json to dist directory in release wor…

build: add step to copy package.json to dist directory in release wor… #14

Workflow file for this run

name: Release
on:
push:
branches:
- main
jobs:
release:
if: github.repository == 'stubbycms/stubby-components-react'
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
pull-requests: write
issues: write
environment: Release
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- name: Install dependencies
run: npm install
- name: Build library
run: npm run build:lib
- name: Copy package.json
run: cp package.json dist
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release