Skip to content

chore(deps): update pnpm to v8.6.8 (#60) #63

chore(deps): update pnpm to v8.6.8 (#60)

chore(deps): update pnpm to v8.6.8 (#60) #63

Workflow file for this run

concurrency:
cancel-in-progress: false
group: ${{ github.workflow }}
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: ./.github/actions/prepare
- run: pnpm build
- run: git config user.name "${GITHUB_ACTOR}"
- run: git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
- name: Delete branch protection on main
uses: actions/github-script@v6.4.1
with:
github-token: ${{ secrets.ACCESS_TOKEN }}
script: |
try {
await github.request(
`DELETE /repos/JoshuaKGoldberg/all-contributors-for-repository/branches/main/protection`,
);
} catch (error) {
if (!error.message?.includes?.("Branch not protected")) {
throw error;
}
}
- env:
GITHUB_TOKEN: ${{ github.token }}
run: if pnpm run should-semantic-release ; then pnpm release-it --verbose ; fi
- if: always()
name: Recreate branch protection on main
uses: actions/github-script@v6.4.1
with:
github-token: ${{ secrets.ACCESS_TOKEN }}
# Note: keep this inline script in sync with script/setup.js!
# Todo: it would be nice to not have two sources of truth...
# https://github.com/JoshuaKGoldberg/all-contributors-for-repository/issues/145
script: |
github.request(
`PUT /repos/JoshuaKGoldberg/all-contributors-for-repository/branches/main/protection`,
{
allow_deletions: false,
allow_force_pushes: true,
allow_fork_pushes: false,
allow_fork_syncing: true,
block_creations: false,
branch: "main",
enforce_admins: false,
owner: "JoshuaKGoldberg",
repo: "all-contributors-for-repository",
required_conversation_resolution: true,
required_linear_history: false,
required_pull_request_reviews: null,
required_status_checks: {
checks: [
{ context: "build" },
{ context: "compliance" },
{ context: "knip" },
{ context: "lint" },
{ context: "markdown" },
{ context: "package" },
{ context: "packages" },
{ context: "prettier" },
{ context: "spelling" },
{ context: "test" },
],
strict: false,
},
restrictions: null,
}
);
name: Release
on:
push:
branches:
- main
permissions:
contents: write