chore(deps-dev): bump typescript from 4.9.5 to 5.5.2 #1053
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'General Automation' | |
on: | |
push: | |
branches: [master, next] | |
pull_request_target: | |
branches: next | |
permissions: | |
pull-requests: write | |
issues: write | |
contents: write | |
jobs: | |
approve-pr-dependabot: | |
name: Approve PR (dependabot) | |
if: github.event_name == 'pull_request_target' && github.actor == 'dependabot[bot]' | |
runs-on: ubuntu-latest | |
steps: | |
- id: metadata | |
uses: dependabot/[email protected] | |
with: | |
github-token: '${{ secrets.GITHUB_TOKEN }}' | |
- if: steps.metadata.outputs.update-type != 'version-update:semver-major' | |
run: gh pr review --approve "$PR_URL" | |
env: | |
PR_URL: ${{ github.event.pull_request.html_url }} | |
GITHUB_TOKEN: ${{ secrets.PUSH_TO_PROTECTED_BRANCH }} | |
publish-docs: | |
name: Publish Docs | |
if: github.event_name == 'push' && github.repository_owner == 'ZPTXDev' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.PUSH_TO_PROTECTED_BRANCH }} | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- run: npm ci | |
- run: npm run build | |
- run: npm test | |
- run: npx typedoc src/index.ts --name "${{ github.event.repository.name }} (${{ github.ref_name }})" | |
- uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
token: ${{ secrets.PUSH_TO_PROTECTED_BRANCH }} | |
folder: docs | |
repository-name: ZPTXDev/docs | |
target-folder: ${{ github.event.repository.name }}${{ github.ref_name != 'master' && format('/{0}', github.ref_name) || '' }} | |
commit-message: 'docs: update docs for ${{ github.event.repository.name }}/${{ github.ref_name }}' | |
git-config-name: zptx-bot | |
git-config-email: [email protected] | |
clean: false | |
semantic-release: | |
name: Semantic Release | |
if: github.event_name == 'push' && github.repository_owner == 'ZPTXDev' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.PUSH_TO_PROTECTED_BRANCH }} | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- run: npm ci | |
- run: npm run build | |
- uses: cycjimmy/semantic-release-action@v3 | |
with: | |
branches: | | |
[ | |
'master', | |
{name: 'next', prerelease: true} | |
] | |
extra_plugins: | | |
@semantic-release/git | |
https://github.com/ZPTXDev/semantic-release-github-milestones#master | |
env: | |
GITHUB_TOKEN: ${{ secrets.PUSH_TO_PROTECTED_BRANCH }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |