mirror of
https://github.com/changesets/action
synced 2026-10-26 16:39:56 +08:00
Use new self-repository syntax for local GitHub actions (#706)
This commit is contained in:
@@ -10,6 +10,11 @@ inputs:
|
|||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
steps:
|
steps:
|
||||||
|
- name: Check out repo
|
||||||
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
- name: Set up pnpm
|
- name: Set up pnpm
|
||||||
uses: pnpm/action-setup@8912a9102ac27614460f54aedde9e1e7f9aec20d # v6.0.5
|
uses: pnpm/action-setup@8912a9102ac27614460f54aedde9e1e7f9aec20d # v6.0.5
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ jobs:
|
|||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
- name: Run zizmor
|
- name: Run zizmor
|
||||||
uses: zizmorcore/zizmor-action@5f14fd08f7cf1cb1609c1e344975f152c7ee938d # v0.5.6
|
uses: zizmorcore/zizmor-action@3dc1ecc9bcb9e94e9b2c709687979e1298497054 # v0.6.2
|
||||||
with:
|
with:
|
||||||
persona: pedantic
|
persona: pedantic
|
||||||
annotations: true
|
annotations: true
|
||||||
@@ -43,12 +43,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 20
|
timeout-minutes: 20
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repo
|
- uses: $/.github/actions/ci-setup
|
||||||
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
|
|
||||||
- uses: ./.github/actions/ci-setup
|
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: pnpm test
|
run: pnpm test
|
||||||
@@ -58,12 +53,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 20
|
timeout-minutes: 20
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repo
|
- uses: $/.github/actions/ci-setup
|
||||||
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
|
|
||||||
- uses: ./.github/actions/ci-setup
|
|
||||||
|
|
||||||
- name: Typecheck
|
- name: Typecheck
|
||||||
run: pnpm typecheck
|
run: pnpm typecheck
|
||||||
@@ -73,12 +63,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 20
|
timeout-minutes: 20
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repo
|
- uses: $/.github/actions/ci-setup
|
||||||
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
|
|
||||||
- uses: ./.github/actions/ci-setup
|
|
||||||
|
|
||||||
- name: Format
|
- name: Format
|
||||||
run: pnpm format
|
run: pnpm format
|
||||||
|
|||||||
@@ -24,12 +24,7 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
contents: read # to check out repo (actions/checkout)
|
contents: read # to check out repo (actions/checkout)
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repo
|
- uses: $/.github/actions/ci-setup
|
||||||
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
|
|
||||||
- uses: ./.github/actions/ci-setup
|
|
||||||
with:
|
with:
|
||||||
skip-cache: true # avoid cache poisoning attacks
|
skip-cache: true # avoid cache poisoning attacks
|
||||||
|
|
||||||
@@ -50,19 +45,14 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
contents: read # to check out repo (actions/checkout)
|
contents: read # to check out repo (actions/checkout)
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repo
|
- uses: $/.github/actions/ci-setup
|
||||||
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
|
|
||||||
- uses: ./.github/actions/ci-setup
|
|
||||||
with:
|
with:
|
||||||
skip-cache: true # avoid cache poisoning attacks
|
skip-cache: true # avoid cache poisoning attacks
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: pnpm build
|
run: pnpm build
|
||||||
|
|
||||||
- uses: ./.github/actions/setup-bot-auth
|
- uses: $/.github/actions/setup-bot-auth
|
||||||
id: bot-auth
|
id: bot-auth
|
||||||
with:
|
with:
|
||||||
client-id: ${{ vars.APP_CLIENT_ID }}
|
client-id: ${{ vars.APP_CLIENT_ID }}
|
||||||
@@ -87,19 +77,14 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
contents: write # to create release and have it authored by github-actions (changesets/action)
|
contents: write # to create release and have it authored by github-actions (changesets/action)
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repo
|
- uses: $/.github/actions/ci-setup
|
||||||
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
|
|
||||||
- uses: ./.github/actions/ci-setup
|
|
||||||
with:
|
with:
|
||||||
skip-cache: true # avoid cache poisoning attacks
|
skip-cache: true # avoid cache poisoning attacks
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: pnpm build
|
run: pnpm build
|
||||||
|
|
||||||
- uses: ./.github/actions/setup-bot-auth
|
- uses: $/.github/actions/setup-bot-auth
|
||||||
id: bot-auth
|
id: bot-auth
|
||||||
with:
|
with:
|
||||||
client-id: ${{ vars.APP_CLIENT_ID }}
|
client-id: ${{ vars.APP_CLIENT_ID }}
|
||||||
|
|||||||
@@ -122,12 +122,7 @@ jobs:
|
|||||||
pull-requests: write # to comment on the pull request with the release result (changesets/action)
|
pull-requests: write # to comment on the pull request with the release result (changesets/action)
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repo
|
- uses: $/.github/actions/ci-setup
|
||||||
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
|
|
||||||
- uses: ./.github/actions/ci-setup
|
|
||||||
with:
|
with:
|
||||||
skip-cache: true # avoid cache poisoning attacks
|
skip-cache: true # avoid cache poisoning attacks
|
||||||
|
|
||||||
@@ -166,7 +161,7 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: pnpm build
|
run: pnpm build
|
||||||
|
|
||||||
- uses: ./.github/actions/setup-bot-auth
|
- uses: $/.github/actions/setup-bot-auth
|
||||||
id: bot-auth
|
id: bot-auth
|
||||||
with:
|
with:
|
||||||
client-id: ${{ vars.APP_CLIENT_ID }}
|
client-id: ${{ vars.APP_CLIENT_ID }}
|
||||||
|
|||||||
Reference in New Issue
Block a user