Skip to content

Commit

Permalink
ci: update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarJaroudi committed Nov 21, 2024
1 parent 0dc26c0 commit ab95f86
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 19 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
name: CI

on:
workflow_dispatch:
pull_request:
push:

branches: [main]
jobs:

release-notes:
name: Release notes preview
runs-on: ubuntu-latest
if: github.ref != 'refs/heads/main'
if: github.event_name == 'pull_request'
steps:
- uses: open-turo/actions-release/release-notes-preview@v2
- uses: open-turo/actions-release/lint-release-notes@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
env:
Expand All @@ -20,10 +22,10 @@ jobs:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: open-turo/action-pre-commit@v1
- uses: open-turo/action-pre-commit@v3

test:
name: Test
Expand Down
29 changes: 16 additions & 13 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
name: Release
# Only release when we merge to main

on:
push:
branches: [main, "[0-9]+.x"]
workflow_dispatch: # enable manual release

# Handle release versioning automatically with semantic release
branches: [main, "v*"]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
semantic-release:
release:
name: Release
runs-on: ubuntu-latest
runs-on: [self-hosted, general-ubuntu]
env:
NODE_MODULES_CACHE_BUCKET_NAME: core-servi-github-actions-build-cach20240118162152102700000001
NODE_MODULES_CACHE_BUCKET_REGION: us-east-1
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: open-turo/actions-release/semantic-release@v2
- uses: open-turo/actions-node/release@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
extra-plugins: |
@open-turo/semantic-release-config
github-token: ${{ secrets.TURO_GITHUB_TOKEN }}
npm-auth-token: ${{ secrets.ARTIFACTORY_NPM_AUTH_TOKEN }}
s3-bucket-name: ${{ env.NODE_MODULES_CACHE_BUCKET_NAME }}
s3-bucket-region: ${{ env.NODE_MODULES_CACHE_BUCKET_REGION }}
2 changes: 1 addition & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "@open-turo/semantic-release-config"
"extends": "@open-turo/semantic-release-config/lib/npm"
}

0 comments on commit ab95f86

Please sign in to comment.