Skip to content

Commit

Permalink
chore: upgrade github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
cngJo committed Oct 24, 2024
1 parent 79f3db6 commit 1bb05ab
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ jobs:

steps:
- name: "Checkout"
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: "Setup NodeJS"
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "18"

- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v4
name: Install pnpm
id: pnpm-install
with:
Expand All @@ -30,7 +30,7 @@ jobs:
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
Expand All @@ -44,7 +44,7 @@ jobs:
- name: Build
run: pnpm run build

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: astro-cookieconsent
path: dist
8 changes: 4 additions & 4 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ jobs:

steps:
- name: "Checkout"
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: "Setup NodeJS"
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "18"

- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v4
name: Install pnpm
id: pnpm-install
with:
Expand All @@ -30,7 +30,7 @@ jobs:
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- build
steps:
- name: "Release 🚀"
uses: "softprops/action-gh-release@v1"
uses: "softprops/action-gh-release@v2"
with:
generate_release_notes: true

Expand All @@ -33,19 +33,19 @@ jobs:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: astro-cookieconsent
path: ./dist

# Setup .npmrc file to publish to GitHub Packages
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: '18.x'
registry-url: 'https://npm.pkg.github.com'

- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v4
with:
version: 8.6.0
run_install: false
Expand All @@ -61,18 +61,18 @@ jobs:
- github-release
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: astro-cookieconsent
path: ./dist

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: '18.x'
registry-url: "https://registry.npmjs.org/"

- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v4
with:
version: 8.6.0
run_install: false
Expand Down

0 comments on commit 1bb05ab

Please sign in to comment.