Skip to content

Commit 4b15780

Browse files
author
xyzjesper
committed
Add NPM Setup and start workflow
1 parent 9440033 commit 4b15780

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

.github/workflows/docs.yml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,45 +3,44 @@ name: TSDoc Actions
33

44
on:
55
release:
6-
# Allows you to run this workflow manually from the Actions tab
76
workflow_dispatch:
87

9-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
108
permissions:
119
contents: read
1210
pages: write
1311
id-token: write
1412

1513
jobs:
16-
# Single deploy job since we're just deploying
1714
deploy:
1815
name: Deploy Documentation
16+
runs-on: ubuntu-latest
1917

20-
# Deploy to the github-pages environment
2118
environment:
2219
name: github-pages
2320
url: ${{ steps.deployment.outputs.page_url }}
2421

25-
# Specify runner + deployment step
26-
runs-on: ubuntu-latest
2722
steps:
2823
- name: Checkout code
2924
uses: actions/checkout@v3
3025

31-
- uses: oven-sh/setup-bun@v2
26+
- name: Setup pnpm
27+
uses: pnpm/action-setup@v4
28+
with:
29+
version: latest
30+
31+
- name: Setup Node
32+
uses: actions/setup-node@v4
3233
with:
33-
registries: |
34-
https://registry.npmjs.org/
35-
@myorg:https://npm.pkg.github.com/|$GITHUB_TOKEN
36-
@internal:https://username:$INTERNAL_PASSWORD@registry.internal.com/
34+
node-version: '20'
35+
cache: 'pnpm'
3736

3837
- name: Install dependencies
3938
env:
4039
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4140
INTERNAL_PASSWORD: ${{ secrets.INTERNAL_PASSWORD }}
42-
run: bun install
41+
run: pnpm install
4342

44-
- name: TSDoc Action
43+
- name: Generate TSDoc
4544
uses: erikyo/tsdoc-action@v1
4645
with:
4746
source_dir: ./src/*
@@ -54,7 +53,6 @@ jobs:
5453
- name: Upload artifact
5554
uses: actions/upload-pages-artifact@v3
5655
with:
57-
# Upload entire repository
5856
path: './docs'
5957

6058
- name: Deploy to GitHub Pages

0 commit comments

Comments
 (0)