Skip to content

Commit

Permalink
fix: try to fix GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Princesseuh committed Jul 16, 2024
1 parent 7282bcb commit 14eaf6c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/actions/install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ runs:
using: composite
steps:
- name: Setup pnpm
uses: pnpm/action-setup@v2.2.4
uses: pnpm/action-setup@v3

- name: Setup Node ${{ inputs.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
cache: pnpm
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@ jobs:
name: 'Test: node-${{ matrix.node_version }}, ${{ matrix.os }}'
steps:
- name: Check out code using Git
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Tools & Dependencies
uses: ./.github/actions/install
with:
node-version: ${{ matrix.node_version }}

- name: Build prettier-plugin-astro
run: pnpm build
Expand All @@ -42,7 +40,7 @@ jobs:
runs-on: ubuntu-latest
name: 'Lint: node-16, ubuntu-latest'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Tools & Dependencies
uses: ./.github/actions/install
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out branch
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0 # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits

Expand All @@ -20,7 +20,7 @@ jobs:

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
uses: changesets/action@master
with:
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: pnpm release
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out branch
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0 # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits

Expand All @@ -20,7 +20,7 @@ jobs:

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
uses: changesets/action@master
with:
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: pnpm release
Expand Down

0 comments on commit 14eaf6c

Please sign in to comment.