Skip to content

Commit

Permalink
chore: fix cd
Browse files Browse the repository at this point in the history
  • Loading branch information
iceghost committed Sep 1, 2023
1 parent 3397bab commit a89bc5d
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ permissions:
contents: read
pages: write
id-token: write
packages: read

# Allow one concurrent deployment
concurrency:
Expand All @@ -25,24 +26,21 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Cache pnpm modules
uses: actions/cache@v2
- name: Setup node and npm
uses: actions/setup-node@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
node-version: 18
cache: npm
registry-url: "https://npm.pkg.github.com"

- name: Install pnpm
uses: pnpm/action-setup@v2.2.2
with:
version: latest

- name: Setup pnpm
run: pnpm install
- name: Install npm dependencies
run: "npm ci --ignore-scripts"
shell: bash
env:
NODE_AUTH_TOKEN: ${{ github.token }}

- name: Build with adapter static
run: pnpm run build
run: npm run build

- name: Setup Pages
uses: actions/configure-pages@v2
Expand Down

0 comments on commit a89bc5d

Please sign in to comment.