Skip to content

Commit

Permalink
refactor(package manager): move to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
EINDEX committed Jan 18, 2024
1 parent eb17336 commit 589f414
Show file tree
Hide file tree
Showing 4 changed files with 5,662 additions and 5,754 deletions.
39 changes: 17 additions & 22 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,24 @@ jobs:
node-version: '18'
cache: 'yarn'

- name: install package
run: yarn
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: build site
run: yarn build

- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@1
with:
Expand All @@ -49,20 +61,3 @@ jobs:
directory: dist
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref_name }}

# - run: sleep 60

# - name: Send webmentions
# run: node pipeline/send-mentions.js

# - name: Run scraper
# env:
# HOST_URL: ${{ secrets.MEILISEARCH_HOST_URL }}
# API_KEY: ${{ secrets.MEILISEARCH_API_KEY }}
# CONFIG_FILE_PATH: meili.json
# run: |
# docker run -t --rm \
# -e MEILISEARCH_HOST_URL=$HOST_URL \
# -e MEILISEARCH_API_KEY=$API_KEY \
# -v $PWD:/blog \
# getmeili/docs-scraper:latest pipenv run ./docs_scraper /blog/meili.json
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@
"prepare": "husky install"
},
"dependencies": {
"@astrojs/cloudflare": "^7.5.1",
"@astrojs/mdx": "^1.1.1",
"@astrojs/rss": "^3.0.0",
"@astrojs/sitemap": "^3.0.1",
"@astrojs/tailwind": "^5.0.1",
"@astrojs/cloudflare": "^8.1.0",
"@astrojs/mdx": "^2.0.4",
"@astrojs/rss": "^4.0.2",
"@astrojs/sitemap": "^3.0.4",
"@astrojs/tailwind": "^5.1.0",
"@astrolib/seo": "^0.6.0",
"@fontsource-variable/bitter": "^5.0.14",
"@fontsource-variable/inter": "^5.0.13",
"@fontsource-variable/noto-sans-sc": "^5.0.3",
"@fontsource/noto-serif-sc": "^5.0.7",
"@tabler/icons-webfont": "^2.38.0",
"@tailwindcss/typography": "^0.5.10",
"astro": "^3.2.3",
"astro": "^4.1.3",
"html-entities": "^2.3.3",
"lodash": "^4.17.21",
"markdown-it": "^13.0.2",
Expand All @@ -51,5 +51,6 @@
"remark-toc": "^8.0.1",
"sass": "^1.58.3",
"xml2json": "^0.12.0"
}
},
"packageManager": "[email protected]"
}
Loading

0 comments on commit 589f414

Please sign in to comment.