Skip to content

Commit

Permalink
updated ci to not be bad (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
buffet-time authored Sep 25, 2024
1 parent 1192833 commit bff1ed6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 31 deletions.
32 changes: 6 additions & 26 deletions .github/workflows/push-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,34 +10,14 @@ jobs:

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/checkout@v4

# Read the pnpm version from the `.pnpmrc` file
- name: Read .pnpmrc
id: pnpm_version
uses: juliangruber/read-file-action@v1
with:
path: ./.pnpmrc

- name: Cache PNPM modules
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-

- uses: pnpm/[email protected]
with:
version: '${{ steps.pnpm_version.outputs.content }}'

# Read node version from `.nvmrc` file
- id: nvmrc
uses: browniebroke/read-nvmrc-action@v1
# setups pnpm
- uses: pnpm/action-setup@v4

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
# use the output from the action
node-version: '${{ steps.nvmrc.outputs.node_version }}'
node-version: 22

- name: Install `node_modules`
run: pnpm install
Expand All @@ -49,7 +29,7 @@ jobs:
run: pnpm build

- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4.3.3
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: dist
1 change: 0 additions & 1 deletion .pnpmrc

This file was deleted.

5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@
"name": "Daniel Turcich",
"url": "https://danielTurcich.com"
},
"engines": {
"pnpm": ">=9.10.0"
},
"engineStrict": true,
"packageManager": "[email protected]",
"scripts": {
"dev": "vite",
"dev:network": "vite --host",
Expand Down

0 comments on commit bff1ed6

Please sign in to comment.