ci: add concurrency check #5
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: CI | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- ".vscode/**" | |
- "docs/**" | |
- "README.md" | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- ".vscode/**" | |
- "docs/**" | |
- "README.md" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- name: Checkout Source Code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Configure Git | |
run: | | |
git config user.name "${GITHUB_ACTOR}" | |
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" | |
- name: Setup ENV Vars | |
run: | | |
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | |
echo "NODE_VERSION=$(cat .node-version)" >> $GITHUB_ENV | |
- name: Setup Node Stuff | |
uses: ./.github/actions/setup-node | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Setup Go Stuff | |
uses: ./.github/actions/setup-go | |
with: | |
go-version: "1.21.5" | |
- name: Build | |
run: pnpm turbo build | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: vryjs-${{ github.ref }} | |
path: | | |
out/** |