Skip to content

ci: fix artifacts

ci: fix artifacts #26

Workflow file for this run

name: Artifacts
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '18.x'
- name: Cache
id: cache
uses: actions/cache@v2.1.6
with:
path: node_modules
key: buildCachev25
- name: Install PNPM
run: |
npm install -g pnpm
- name: Install dependencies
run: |
pnpm install
- name: Setup Repo Builder
run: |
cd builder
pnpm install
pnpm run build
- name: Generate Repo Data
run: |
cd builder
pnpm run generateCode
- name: Build
run: |
pnpm run build
- name: Ready library for upload
run: |
rm -rf output
mkdir output
cp -r package.json pnpm-lock.yaml tsconfig.json dist/ DOCUMENTATION.md LICENSE output/
find output -name '*.d.ts' ! -name 'index.d.ts' -delete
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: REPO-Script-Library
path: ./output