0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-30 22:03:56 -05:00

ci: don't pin pnpm/action-setup exactly (#6348)

This commit is contained in:
Nate Moore 2023-02-24 09:52:43 -06:00 committed by GitHub
parent a848a723f6
commit 098341f17a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 50 additions and 51 deletions

View file

@ -31,13 +31,13 @@ jobs:
repository: ${{github.event.pull_request.head.repo.full_name}}
- name: Setup PNPM
uses: pnpm/action-setup@v2.2.1
uses: pnpm/action-setup@v2
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
cache: "pnpm"
- name: Install dependencies
run: pnpm install
@ -58,7 +58,7 @@ jobs:
- uses: actions/checkout@v3
with:
persist-credentials: false
ref: 'main'
ref: "main"
- name: Install
run: |

View file

@ -6,10 +6,10 @@ on:
- main
pull_request:
paths:
- 'examples/**'
- '.github/workflows/check.yml'
- 'scripts/smoke/check.js'
- 'packages/astro/src/@types/astro.ts'
- "examples/**"
- ".github/workflows/check.yml"
- "scripts/smoke/check.js"
- "packages/astro/src/@types/astro.ts"
env:
ASTRO_TELEMETRY_DISABLED: true
@ -26,13 +26,13 @@ jobs:
uses: actions/checkout@v3
- name: Setup PNPM
uses: pnpm/action-setup@v2.2.1
uses: pnpm/action-setup@v2
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'pnpm'
cache: "pnpm"
- name: Install dependencies
run: pnpm install

View file

@ -33,7 +33,7 @@ jobs:
uses: actions/checkout@v3
- name: Setup PNPM
uses: pnpm/action-setup@v2.2.1
uses: pnpm/action-setup@v2
- name: Setup Node
uses: actions/setup-node@v3
@ -89,7 +89,7 @@ jobs:
uses: actions/checkout@v3
- name: Setup PNPM
uses: pnpm/action-setup@v2.2.1
uses: pnpm/action-setup@v2
- name: Setup node@${{ matrix.NODE_VERSION }}
uses: actions/setup-node@v3
@ -123,7 +123,7 @@ jobs:
uses: actions/checkout@v3
- name: Setup PNPM
uses: pnpm/action-setup@v2.2.1
uses: pnpm/action-setup@v2
- name: Setup node@${{ matrix.NODE_VERSION }}
uses: actions/setup-node@v3
@ -162,7 +162,7 @@ jobs:
uses: actions/checkout@v3
- name: Setup PNPM
uses: pnpm/action-setup@v2.2.1
uses: pnpm/action-setup@v2
- name: Setup node@${{ matrix.NODE_VERSION }}
uses: actions/setup-node@v3
@ -195,7 +195,7 @@ jobs:
uses: actions/checkout@v3
- name: Setup PNPM
uses: pnpm/action-setup@v2.2.1
uses: pnpm/action-setup@v2
- name: Setup node@${{ matrix.NODE_VERSION }}
uses: actions/setup-node@v3

View file

@ -1,4 +1,4 @@
name: 'Format Code'
name: "Format Code"
on:
push:
@ -18,12 +18,12 @@ jobs:
# Needs access to push to main
token: ${{ secrets.FREDKBOT_GITHUB_TOKEN }}
- name: Setup PNPM
uses: pnpm/action-setup@v2.2.1
uses: pnpm/action-setup@v2
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'pnpm'
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Format code
@ -31,7 +31,7 @@ jobs:
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: '[ci] format'
commit_message: "[ci] format"
branch: ${{ github.head_ref }}
commit_user_name: fredkbot
commit_user_email: fred+astrobot@astro.build

View file

@ -22,9 +22,9 @@ jobs:
- id: setup
env:
MESSAGE: ${{ github.event.commits[0].message }}
run: |
TRIMMED=$(echo "$MESSAGE" | sed '1!d;q')
echo "::set-output name=COMMIT_MSG::${TRIMMED}"
run: |
TRIMMED=$(echo "$MESSAGE" | sed '1!d;q')
echo "::set-output name=COMMIT_MSG::${TRIMMED}"
- name: Send a Discord notification when a PR is merged
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_CONGRATS }}
@ -42,13 +42,13 @@ jobs:
- uses: actions/checkout@v3
- name: Setup PNPM
uses: pnpm/action-setup@v2.2.1
uses: pnpm/action-setup@v2
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'pnpm'
cache: "pnpm"
- name: Install dependencies
run: pnpm install

View file

@ -1,9 +1,9 @@
name: 'Nightly'
name: "Nightly"
on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '0 12 * * *'
- cron: "0 12 * * *"
workflow_dispatch:
jobs:
@ -15,13 +15,13 @@ jobs:
uses: actions/checkout@v3
- name: Setup PNPM
uses: pnpm/action-setup@v2.2.1
uses: pnpm/action-setup@v2
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'pnpm'
cache: "pnpm"
- name: Install dependencies
run: pnpm install
@ -35,7 +35,7 @@ jobs:
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: '[ci] collect stats'
commit_message: "[ci] collect stats"
branch: ${{ github.head_ref }}
# Needs access to push to main
token: ${{ secrets.FREDKBOT_GITHUB_TOKEN }}
@ -44,18 +44,17 @@ jobs:
if: github.repository_owner == 'withastro'
runs-on: ubuntu-latest
steps:
- name: Check out code using Git
uses: actions/checkout@v3
- name: Setup PNPM
uses: pnpm/action-setup@v2.2.1
uses: pnpm/action-setup@v2
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'pnpm'
cache: "pnpm"
- name: Delete the existing pnpm-lock.yaml file
run: rm pnpm-lock.yaml
@ -70,8 +69,8 @@ jobs:
branch: ci/lockfile
# Access token is needed to trigger CI on this PR
token: ${{ secrets.FREDKBOT_GITHUB_TOKEN }}
commit-message: '[ci] update lockfile'
title: '[ci] update lockfile'
commit-message: "[ci] update lockfile"
title: "[ci] update lockfile"
body: >
This PR is auto-generated by a nightly GitHub action.
It should automatically be merged if tests pass.

View file

@ -4,7 +4,7 @@ on:
push:
branches:
- main
- '1-legacy'
- "1-legacy"
defaults:
run:
@ -24,13 +24,13 @@ jobs:
- uses: actions/checkout@v3
- name: Setup PNPM
uses: pnpm/action-setup@v2.2.1
uses: pnpm/action-setup@v2
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'pnpm'
cache: "pnpm"
- name: Install dependencies
run: pnpm install
@ -45,8 +45,8 @@ jobs:
# Note: pnpm install after versioning is necessary to refresh lockfile
version: pnpm run version
publish: pnpm exec changeset publish
commit: '[ci] release'
title: '[ci] release'
commit: "[ci] release"
title: "[ci] release"
env:
# Needs access to push to main
GITHUB_TOKEN: ${{ secrets.FREDKBOT_GITHUB_TOKEN }}

View file

@ -3,9 +3,9 @@ name: Scripts
on:
pull_request:
branches:
- 'main'
- "main"
paths:
- 'packages/astro/src/runtime/client/**/*'
- "packages/astro/src/runtime/client/**/*"
# Automatically cancel in-progress actions on the same branch
concurrency:
@ -31,13 +31,13 @@ jobs:
path: main
- name: Setup PNPM
uses: pnpm/action-setup@v2.2.1
uses: pnpm/action-setup@v2
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'pnpm'
cache: "pnpm"
- name: Install dependencies
run: pnpm install

View file

@ -30,7 +30,7 @@ jobs:
id: getSnapshotName
uses: actions/github-script@v6
with:
script: |
script: |
const splitComment = context.payload.comment.body.split(' ');
splitComment.length !== 2 && (github.rest.issues.createComment({
issue_number: context.issue.number,
@ -52,14 +52,14 @@ jobs:
ref: ${{ steps.refs.outputs.head_ref }}
- name: Setup PNPM
uses: pnpm/action-setup@v2.2.1
uses: pnpm/action-setup@v2
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'
registry-url: "https://registry.npmjs.org"
cache: "pnpm"
- name: Install dependencies
run: pnpm install