Skip to content

chore(deps): update actions/upload-artifact action to v4.3.4 (#75) #77

chore(deps): update actions/upload-artifact action to v4.3.4 (#75)

chore(deps): update actions/upload-artifact action to v4.3.4 (#75) #77

# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
name: "Semantic Release"
on: # yamllint disable-line rule:truthy
push:
branches:
- "([0-9])?(.{+([0-9]),x}).x"
- "main"
- "next"
- "next-major"
- "alpha"
- "beta"
permissions:
contents: "read" # for checkout
jobs:
semantic-release:
name: "Semantic Release"
runs-on: "ubuntu-latest"
permissions:
contents: "write" # to be able to publish a GitHub release
issues: "write" # to be able to comment on released issues
pull-requests: "write" # to be able to comment on released pull requests
id-token: "write" # to enable use of OIDC for npm provenance
steps:
- name: "Harden Runner"
uses: "step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6" # v2.8.1
with:
egress-policy: "audit"
- name: "Wait for tests to succeed"
uses: "lewagon/wait-on-check-action@ccfb013c15c8afb7bf2b7c028fb74dc5a068cccc" # v1.3.4
timeout-minutes: 20
with:
ref: "${{ github.event.pull_request.head.sha || github.sha }}"
repo-token: "${{ secrets.GITHUB_TOKEN }}"
wait-interval: 60 # seconds
running-workflow-name: "Semantic Release" # wait for all other checks to complete
allowed-conclusions: "success,skipped" # all other checks must pass, being skipped or cancelled is not sufficient
- name: "Git checkout"
uses: "actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332" # v4.1.7
with:
fetch-depth: 0
persist-credentials: false
env:
GIT_COMMITTER_NAME: "GitHub Actions Shell"
GIT_AUTHOR_NAME: "GitHub Actions Shell"
EMAIL: "github-actions[bot]@users.noreply.github.com"
- name: "Setup resources and environment"
id: "setup"
uses: "anolilab/workflows/step/setup@main"
with:
node-version: "20"
install-bun: false
enable-nx-cache: false
- name: "Semantic Release"
if: "success()"
env:
GITHUB_TOKEN: "${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }}"
NPM_TOKEN: "${{ secrets.NPM_AUTH_TOKEN }}"
GIT_AUTHOR_NAME: "github-actions-shell"
GIT_AUTHOR_EMAIL: "github-actions[bot]@users.noreply.github.com"
GIT_COMMITTER_NAME: "github-actions-shell"
GIT_COMMITTER_EMAIL: "github-actions[bot]@users.noreply.github.com"
run: "pnpm exec semantic-release"