Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@
"drizzle-orm",
"sharp",

// manually bumping workflow actions
"actions/labeler",

// follow vite deps version
"postcss-load-config",
"esbuild"
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/check-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on: pull_request_target

permissions:
pull-requests: write
checks: write
statuses: write

jobs:
check:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:
- "pnpm-lock.yaml"
- "packages/astro/types.d.ts"

permissions:
contents: read

env:
ASTRO_TELEMETRY_DISABLED: true
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/cleanup-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
types:
- closed

permissions:
contents: read
actions: write

jobs:
cleanup:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/diff-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0 # allows the diff action to access git history
persist-credentials: false

- name: Create Diff
uses: e18e/action-dependency-diff@d995338f3b229fe7b2cd82048df5da930f70c7c3 # v1.4.4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/examples-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ jobs:
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Send a POST request to Netlify to rebuild preview.astro.new
run: 'curl -X POST -d {} ${{ env.BUILD_HOOK }}'
run: 'curl -X POST -d {} "$BUILD_HOOK"'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are we changing here? I think this isn't mentioned in the PR description

env:
BUILD_HOOK: ${{ secrets.NETLIFY_PREVIEWS_BUILD_HOOK }}
3 changes: 2 additions & 1 deletion .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ jobs:
uses: withastro/automation/.github/workflows/format.yml@main
with:
command: "format"
secrets: inherit
secrets:
FREDKBOT_GITHUB_TOKEN: ${{ secrets.FREDKBOT_GITHUB_TOKEN }}
4 changes: 3 additions & 1 deletion .github/workflows/label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ jobs:
triage:
runs-on: ubuntu-latest
if: github.repository_owner == 'withastro'
permissions:
pull-requests: write
steps:
- uses: actions/labeler@v4
- uses: actions/labeler@ac9175f8a1f3625fd0d4fb234536d26811351594 # v4.3.0
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true
1 change: 0 additions & 1 deletion .github/workflows/preview-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ concurrency:

permissions:
contents: read
actions: write

env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
Expand Down
17 changes: 12 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,18 @@ jobs:
- name: Publish to VSCode Marketplace
if: steps.vscode-published.outputs.published == 'true'
working-directory: ./packages/language-tools/vscode
env:
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}
run: |
npx vsce publish -p ${{ secrets.VSCE_TOKEN }} --target win32-x64 win32-arm64 linux-x64 linux-arm64 linux-armhf darwin-x64 darwin-arm64 alpine-x64 alpine-arm64
npx vsce publish -p "$VSCE_TOKEN" --target win32-x64 win32-arm64 linux-x64 linux-arm64 linux-armhf darwin-x64 darwin-arm64 alpine-x64 alpine-arm64

- name: Publish to OpenVSX
if: steps.vscode-published.outputs.published == 'true'
working-directory: ./packages/language-tools/vscode
env:
OVSX_TOKEN: ${{ secrets.OVSX_TOKEN }}
run: |
npx ovsx publish -p ${{ secrets.OVSX_TOKEN }} --target win32-x64 win32-arm64 linux-x64 linux-arm64 linux-armhf darwin-x64 darwin-arm64 alpine-x64 alpine-arm64
npx ovsx publish -p "$OVSX_TOKEN" --target win32-x64 win32-arm64 linux-x64 linux-arm64 linux-armhf darwin-x64 darwin-arm64 alpine-x64 alpine-arm64
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This. I didn't know it was possible, is there some GitHub reference about it?


- name: Restore root package.json and node_modules
if: steps.vscode-published.outputs.published == 'true'
Expand All @@ -113,6 +117,9 @@ jobs:
if: steps.changesets.outputs.published == 'true'
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
uses: Ilshidur/action-discord@d2594079a10f1d6739ee50a2471f0ca57418b554 # 0.4.0
with:
args: "${{ steps.message.outputs.DISCORD_MESSAGE }}"
DISCORD_MESSAGE: ${{ steps.message.outputs.DISCORD_MESSAGE }}
run: |
jq -n --arg content "$DISCORD_MESSAGE" '{content: $content}' | \
curl -X POST "$DISCORD_WEBHOOK" \
-H "Content-Type: application/json" \
-d @-
Comment on lines +120 to +125
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we move this change to another PR? We don't know if this change will work

4 changes: 4 additions & 0 deletions .github/workflows/scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
- "packages/astro/src/runtime/client/**/*"
- "!packages/astro/src/runtime/client/dev-toolbar/**/*"

permissions:
contents: read
pull-requests: write

# Automatically cancel in-progress actions on the same branch
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test-hosts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
schedule:
- cron: '0 0 * * 0'

permissions:
contents: read

env:
ASTRO_TELEMETRY_DISABLED: true
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
Expand Down