Skip to content

Commit

Permalink
chore: update CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
shifty11 committed Mar 11, 2024
1 parent eabd008 commit 31170dd
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 45 deletions.
39 changes: 5 additions & 34 deletions .github/workflows/on_main_push.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,15 @@
name: On main push

#on:
# push:
# branches: [ main ]
on:
push:
branches: [ main ]
workflow_call:

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v4
with:
include-component-in-tag: true
# id: tag-release
# with:
# path: ${{ matrix.project }}
# release-type: node
# extra-files: |
# protocol/core/package.json


# token: ${{ secrets.GITHUB_TOKEN }}
# release-type: node
# monorepo-tags: true
# package-name: ${{ matrix.package }}
# command: github-release
# - uses: actions/checkout@v4
# if: ${{ steps.tag-release.outputs.releases_created }}
# - uses: pnpm/action-setup@v2
# with:
# version: 8
# - uses: actions/setup-node@v3
# if: ${{ steps.tag-release.outputs.releases_created }}
# with:
# node-version: 16
# registry-url: 'https://external-dot-oss-automation.appspot.com/'
# cache: 'pnpm'
# - name: publish
# if: ${{ steps.tag-release.outputs.releases_created }}
# env:
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
# run: |
# pnpm install
# pnpm publish --filter ${{ matrix.package }} --no-git-checks --access public
include-component-in-tag: true
12 changes: 8 additions & 4 deletions .github/workflows/on_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ on:
- pull_request

jobs:
checks:
uses: ./.github/workflows/checks.yml
# checks:
# uses: ./.github/workflows/checks.yml
#
# tests:
# uses: ./.github/workflows/tests.yml

tests:
uses: ./.github/workflows/tests.yml
release:
# needs: [checks, tests]
uses: ./.github/workflows/release-please.yml
8 changes: 1 addition & 7 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,4 @@ jobs:
steps:
- uses: google-github-actions/release-please-action@v4
with:
# this assumes that you have created a personal access token
# (PAT) and configured it as a GitHub action secret named
# `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important).
# token: ${{ secrets.MY_RELEASE_PLEASE_TOKEN }}
# this is a built-in strategy in release-please, see "Action Inputs"
# for more options
release-type: simple
include-component-in-tag: true

0 comments on commit 31170dd

Please sign in to comment.