diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index fb7b967..225f513 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -2,27 +2,27 @@ name: Build and deploy on: push: - branches: [main, master] + branches: [main] jobs: deploy: runs-on: ubuntu-latest + permissions: + contents: write steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Prepare environment - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: - node-version: 22 - - - run: npm install --global pnpm + node-version: "22" - name: Install deps - run: pnpm m i + run: npm install - name: Build plugin(s) - run: node ./build.mjs + run: npm run build # Foolproof feature: # - Copies over README so that the root of the deployed website shows it