Skip to content

Commit

Permalink
ci: update ci scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermendes committed Sep 17, 2024
1 parent 4441227 commit d57d99f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 60 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CI
on:
pull_request:
branches:
- main
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -12,11 +12,4 @@ concurrency:
jobs:
test:
uses: ./.github/workflows/test.yml
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

dependabot:
uses: ./.github/workflows/dependabot-auto-merge.yml
needs: test
secrets:
GH_TOKEN: "${{ secrets.GH_DEPENDABOT_TOKEN || secrets.GH_DEPLOY_TOKEN }}"
secrets: inherit
41 changes: 0 additions & 41 deletions .github/workflows/dependabot-auto-merge.yml

This file was deleted.

15 changes: 10 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,28 @@ concurrency:
jobs:
test:
uses: ./.github/workflows/test.yml
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
secrets: inherit

release:
runs-on: ubuntu-latest
needs: test
permissions:
contents: write
issues: write
pull-requests: write
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Setup NPM token
run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
- name: Install
run: yarn install --frozen-lockfile --non-interactive
- name: Release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GH_DEPLOY_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn run semantic-release
GITHUB_TOKEN: ${{ secrets.GH_SEMANTIC_RELEASE_TOKEN }}
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 1 addition & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
on:
workflow_call:
secrets:
NPM_TOKEN:
required: true
on: workflow_call

jobs:
test:
Expand Down

0 comments on commit d57d99f

Please sign in to comment.