mirror of
https://github.com/withastro/astro.git
synced 2025-02-17 22:44:24 -05:00
chore: update actions (#2738)
* upgraded workflow actions * removed unnecessary envs + some formatting * removed extra instruction * bumped pnpm version
This commit is contained in:
parent
e27865d2af
commit
c5361a131d
7 changed files with 66 additions and 100 deletions
68
.github/workflows/ci.yml
vendored
68
.github/workflows/ci.yml
vendored
|
@ -25,23 +25,19 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup PNPM
|
- name: Setup PNPM
|
||||||
uses: pnpm/action-setup@v2.0.1
|
uses: pnpm/action-setup@v2.2.1
|
||||||
with:
|
|
||||||
version: 6.23.6
|
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 16
|
||||||
cache: 'pnpm'
|
cache: 'pnpm'
|
||||||
|
|
||||||
- name: Install NPM Dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
env:
|
|
||||||
CI: true
|
|
||||||
|
|
||||||
- name: Status
|
- name: Status
|
||||||
run: git status
|
run: git status
|
||||||
|
@ -54,7 +50,7 @@ jobs:
|
||||||
# Otherwise, run lint autofixer
|
# Otherwise, run lint autofixer
|
||||||
- name: Lint
|
- name: Lint
|
||||||
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login == github.repository_owner }}
|
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login == github.repository_owner }}
|
||||||
uses: wearerequired/lint-action@v1.10.0
|
uses: wearerequired/lint-action@v1.11.1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
|
@ -82,29 +78,25 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup PNPM
|
- name: Setup PNPM
|
||||||
uses: pnpm/action-setup@v2.0.1
|
uses: pnpm/action-setup@v2.2.1
|
||||||
with:
|
|
||||||
version: 6.23.6
|
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 16
|
||||||
cache: 'pnpm'
|
cache: 'pnpm'
|
||||||
|
|
||||||
- name: Install NPM Dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
env:
|
|
||||||
CI: true
|
|
||||||
|
|
||||||
- name: Build Packages
|
- name: Build Packages
|
||||||
run: pnpm run build
|
run: pnpm run build
|
||||||
|
|
||||||
- name: Upload Package Artifacts
|
- name: Upload Package Artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: artifacts
|
name: artifacts
|
||||||
path: |
|
path: |
|
||||||
|
@ -131,29 +123,25 @@ jobs:
|
||||||
- build
|
- build
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup PNPM
|
- name: Setup PNPM
|
||||||
uses: pnpm/action-setup@v2.0.1
|
uses: pnpm/action-setup@v2.2.1
|
||||||
with:
|
|
||||||
version: 6.23.6
|
|
||||||
|
|
||||||
- name: Setup node@${{ matrix.node_version }}
|
- name: Setup node@${{ matrix.node_version }}
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node_version }}
|
node-version: ${{ matrix.node_version }}
|
||||||
cache: 'pnpm'
|
cache: 'pnpm'
|
||||||
|
|
||||||
- name: Download Build Artifacts
|
- name: Download Build Artifacts
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v3
|
||||||
|
|
||||||
- name: Extract Artifacts
|
- name: Extract Artifacts
|
||||||
run: ./.github/extract-artifacts.sh
|
run: ./.github/extract-artifacts.sh
|
||||||
|
|
||||||
- name: Install NPM Dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
env:
|
|
||||||
CI: true
|
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: pnpm run test
|
run: pnpm run test
|
||||||
|
@ -176,24 +164,22 @@ jobs:
|
||||||
run: git submodule update --remote
|
run: git submodule update --remote
|
||||||
|
|
||||||
- name: Setup PNPM
|
- name: Setup PNPM
|
||||||
uses: pnpm/action-setup@v2.0.1
|
uses: pnpm/action-setup@v2.2.1
|
||||||
with:
|
|
||||||
version: 6.23.6
|
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 14
|
node-version: 14
|
||||||
cache: 'pnpm'
|
cache: 'pnpm'
|
||||||
|
|
||||||
- name: Download Build Artifacts
|
- name: Download Build Artifacts
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v3
|
||||||
|
|
||||||
- name: Extract Artifacts
|
- name: Extract Artifacts
|
||||||
run: ./.github/extract-artifacts.sh
|
run: ./.github/extract-artifacts.sh
|
||||||
|
|
||||||
- name: Install NPM Dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install --frozen-lockfile=false
|
run: pnpm install --no-frozen-lockfile
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: pnpm run test:smoke
|
run: pnpm run test:smoke
|
||||||
|
@ -212,31 +198,27 @@ jobs:
|
||||||
needs: [build]
|
needs: [build]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Setup PNPM
|
- name: Setup PNPM
|
||||||
uses: pnpm/action-setup@v2.0.1
|
uses: pnpm/action-setup@v2.2.1
|
||||||
with:
|
|
||||||
version: 6.23.6
|
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 16
|
||||||
cache: 'pnpm'
|
cache: 'pnpm'
|
||||||
|
|
||||||
- name: Download Build Artifacts
|
- name: Download Build Artifacts
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v3
|
||||||
|
|
||||||
- name: Extract Artifacts
|
- name: Extract Artifacts
|
||||||
run: ./.github/extract-artifacts.sh
|
run: ./.github/extract-artifacts.sh
|
||||||
|
|
||||||
- name: Install NPM Dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
env:
|
|
||||||
CI: true
|
|
||||||
|
|
||||||
- name: Create Release Pull Request or Publish
|
- name: Create Release Pull Request or Publish
|
||||||
id: changesets
|
id: changesets
|
||||||
|
|
12
.github/workflows/format.yml
vendored
12
.github/workflows/format.yml
vendored
|
@ -10,22 +10,18 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code using Git
|
- name: Check out code using Git
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.head_ref }}
|
ref: ${{ github.head_ref }}
|
||||||
- name: Setup PNPM
|
- name: Setup PNPM
|
||||||
uses: pnpm/action-setup@v2.0.1
|
uses: pnpm/action-setup@v2.2.1
|
||||||
with:
|
|
||||||
version: 6.23.6
|
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 16
|
||||||
cache: 'pnpm'
|
cache: 'pnpm'
|
||||||
- name: Install NPM Dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
env:
|
|
||||||
CI: true
|
|
||||||
- name: Format code
|
- name: Format code
|
||||||
run: pnpm run format
|
run: pnpm run format
|
||||||
- name: Commit changes
|
- name: Commit changes
|
||||||
|
|
6
.github/workflows/issue.yml
vendored
6
.github/workflows/issue.yml
vendored
|
@ -13,21 +13,21 @@ jobs:
|
||||||
name: Auto-assign new issues to projects
|
name: Auto-assign new issues to projects
|
||||||
steps:
|
steps:
|
||||||
- name: Assign Bugs to the Bug Tracker
|
- name: Assign Bugs to the Bug Tracker
|
||||||
uses: srggrs/assign-one-project-github-action@1.2.1
|
uses: srggrs/assign-one-project-github-action@1.3.1
|
||||||
if: github.event.action == 'opened' && startsWith(github.event.issue.title, '🐛 BUG:')
|
if: github.event.action == 'opened' && startsWith(github.event.issue.title, '🐛 BUG:')
|
||||||
with:
|
with:
|
||||||
project: 'https://github.com/withastro/astro/projects/2'
|
project: 'https://github.com/withastro/astro/projects/2'
|
||||||
column_name: 'Needs Triage'
|
column_name: 'Needs Triage'
|
||||||
|
|
||||||
- name: Assign RFCs to the RFC Tracker
|
- name: Assign RFCs to the RFC Tracker
|
||||||
uses: srggrs/assign-one-project-github-action@1.2.1
|
uses: srggrs/assign-one-project-github-action@1.3.1
|
||||||
if: github.event.action == 'opened' && startsWith(github.event.issue.title, '💡 RFC:')
|
if: github.event.action == 'opened' && startsWith(github.event.issue.title, '💡 RFC:')
|
||||||
with:
|
with:
|
||||||
project: 'https://github.com/withastro/astro/projects/3'
|
project: 'https://github.com/withastro/astro/projects/3'
|
||||||
column_name: 'Discussing'
|
column_name: 'Discussing'
|
||||||
|
|
||||||
- name: Assign RFCs to the Docs Tracker
|
- name: Assign RFCs to the Docs Tracker
|
||||||
uses: srggrs/assign-one-project-github-action@1.2.1
|
uses: srggrs/assign-one-project-github-action@1.3.1
|
||||||
if: github.event.action == 'opened' && startsWith(github.event.issue.title, '📘 DOC:')
|
if: github.event.action == 'opened' && startsWith(github.event.issue.title, '📘 DOC:')
|
||||||
with:
|
with:
|
||||||
project: 'https://github.com/withastro/astro/projects/5'
|
project: 'https://github.com/withastro/astro/projects/5'
|
||||||
|
|
2
.github/workflows/label.yml
vendored
2
.github/workflows/label.yml
vendored
|
@ -10,7 +10,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.repository_owner == 'withastro'
|
if: github.repository_owner == 'withastro'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/labeler@v3
|
- uses: actions/labeler@v4
|
||||||
with:
|
with:
|
||||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
sync-labels: true
|
sync-labels: true
|
||||||
|
|
14
.github/workflows/main.yml
vendored
14
.github/workflows/main.yml
vendored
|
@ -39,23 +39,19 @@ jobs:
|
||||||
outputs:
|
outputs:
|
||||||
run_job: ${{ steps.check_files.outputs.run_job }}
|
run_job: ${{ steps.check_files.outputs.run_job }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup PNPM
|
- name: Setup PNPM
|
||||||
uses: pnpm/action-setup@v2.0.1
|
uses: pnpm/action-setup@v2.2.1
|
||||||
with:
|
|
||||||
version: 6.23.6
|
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 16
|
||||||
cache: 'pnpm'
|
cache: 'pnpm'
|
||||||
|
|
||||||
- name: Install NPM Dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
env:
|
|
||||||
CI: true
|
|
||||||
|
|
||||||
- name: Check Modified
|
- name: Check Modified
|
||||||
run: pnpm exec changeset status --output ./status.json
|
run: pnpm exec changeset status --output ./status.json
|
||||||
|
@ -79,7 +75,7 @@ jobs:
|
||||||
if: needs.check_for_update.outputs.run_job == 'true'
|
if: needs.check_for_update.outputs.run_job == 'true'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
|
24
.github/workflows/nightly.yml
vendored
24
.github/workflows/nightly.yml
vendored
|
@ -12,23 +12,19 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code using Git
|
- name: Check out code using Git
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup PNPM
|
- name: Setup PNPM
|
||||||
uses: pnpm/action-setup@v2.0.1
|
uses: pnpm/action-setup@v2.2.1
|
||||||
with:
|
|
||||||
version: 6.23.6
|
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 16
|
||||||
cache: 'pnpm'
|
cache: 'pnpm'
|
||||||
|
|
||||||
- name: Install NPM Dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
env:
|
|
||||||
CI: true
|
|
||||||
|
|
||||||
- name: Collect stats
|
- name: Collect stats
|
||||||
run: node scripts/stats/index.js
|
run: node scripts/stats/index.js
|
||||||
|
@ -46,23 +42,19 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Check out code using Git
|
- name: Check out code using Git
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup PNPM
|
- name: Setup PNPM
|
||||||
uses: pnpm/action-setup@v2.0.1
|
uses: pnpm/action-setup@v2.2.1
|
||||||
with:
|
|
||||||
version: 6.23.6
|
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 16
|
||||||
cache: 'pnpm'
|
cache: 'pnpm'
|
||||||
|
|
||||||
- name: Install NPM Dependencies
|
- name: Upgrade recursive
|
||||||
run: pnpm upgrade --recursive
|
run: pnpm upgrade --recursive
|
||||||
env:
|
|
||||||
CI: true
|
|
||||||
|
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
id: createpr
|
id: createpr
|
||||||
|
|
|
@ -67,7 +67,7 @@
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^14.15.0 || >=16.0.0"
|
"node": "^14.15.0 || >=16.0.0"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@6.23.6",
|
"packageManager": "pnpm@6.32.3",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/webapi": "workspace:*"
|
"@astrojs/webapi": "workspace:*"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue