Update DOCUMENTATION.md #51
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Artifacts | |
on: | |
push: | |
branches: [ master ] | |
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: Build | |
run: | | |
pnpm run build | |
- name: Ready library for upload | |
run: | | |
rm -rf output | |
mkdir output | |
find output -name '*.d.ts' ! -name 'index.d.ts' -delete | |
cp -r package.json pnpm-lock.yaml tsconfig.json dist/ src/ DOCUMENTATION.md LICENSE output/ | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: QNS-Library | |
path: ./output |