Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 71 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Deployment Workflow

on:
push:
branches:
- test-git-actions
workflow_dispatch:

jobs:
build:
name: "@mindfiredigital/pivothead_core"
runs-on: ubuntu-latest
permissions:
contents: write
packages: read
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install pnpm
run: npm install -g pnpm # Install pnpm globally

- name: Install dependencies
run: pnpm install # Use pnpm to install dependencies

- name: Build application
run: pnpm run build # Use pnpm to run the build

- name: Set Git user name and email
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"

create-github-release:
name: Create Github release document and publish to node
runs-on: ubuntu-latest
permissions:
contents: write
needs: build
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x

- name: Install pnpm
run: npm install -g pnpm # Install pnpm globally

- name: Install dependencies
run: pnpm install # Use pnpm to install dependencies

- name: Semantic Release and npm release
run: |
npx semantic-release
# env:
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload build artifact
uses: actions/upload-artifact@v3
with:
name: core-build-zip # Name of the artifact
path: ./packages/core/dist # Path to the build folder to zip and upload
Loading