Skip to content

Commit

Permalink
ditch yarn (again) and update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kara-todd committed Mar 16, 2024
1 parent 089c0a9 commit 4b1f06a
Show file tree
Hide file tree
Showing 6 changed files with 2,562 additions and 2,046 deletions.
49 changes: 37 additions & 12 deletions .github/workflows/github-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,31 +21,56 @@ concurrency:
cancel-in-progress: true

jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# Build job
build:
# <Not provided for brevity>
# At a minimum this job should upload artifacts using actions/upload-pages-artifact
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16

- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 8
run_install: false

- name: Install dependencies
run: yarn install
run: pnpm install

- name: Build site
run: yarn build

- name: Setup Pages
uses: actions/configure-pages@v1
run: pnpm build

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
with:
# Upload docs directory
path: "./docs"

# Deploy job
deploy:
# Add a dependency to the build job
needs: build

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@main
uses: actions/deploy-pages@v4
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ node_modules
.env
.env.*
!.env.example
yarn-error.log
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-svelte3": "^4.0.0",
"postcss": "^8.4.14",
"prettier": "^2.6.2",
"prettier": "^2.7.1",
"prettier-plugin-svelte": "^2.7.0",
"svelte": "^3.44.0",
"svelte-check": "^2.7.1",
Expand All @@ -34,5 +34,9 @@
"typescript": "^4.7.4",
"vite": "^3.0.0"
},
"type": "module"
"type": "module",
"dependencies": {
"socket.io": "^4.5.1",
"socket.io-client": "^4.5.1"
}
}
Loading

0 comments on commit 4b1f06a

Please sign in to comment.