Skip to content

Commit

Permalink
fix: new release-please
Browse files Browse the repository at this point in the history
  • Loading branch information
genaris committed Sep 16, 2024
1 parent 5170b74 commit 458c297
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 18 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ concurrency:
group: credo-ts-didcomm-${{ github.ref }}-${{ github.repository }}-${{ github.event_name }}
cancel-in-progress: true

permissions:
contents: write
pull-requests: write

jobs:
ci-trigger:
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -121,43 +125,39 @@ jobs:
release-please:
runs-on: ubuntu-latest
needs: [package-finder]
strategy:
fail-fast: false
matrix:
package: ${{fromJson(needs.package-finder.outputs.packages)}}
steps:
- uses: google-github-actions/release-please-action@v2
- uses: googleapis/release-please-action@v4
id: release-please
with:
path: packages/${{ matrix.package }}
path: packages
manifest-file: .release-please-manifest.json
token: ${{ secrets.GITHUB_TOKEN }}
release-type: node
package-name: ${{ matrix.package }}
bump-minor-pre-major: true
bump-patch-for-minor-pre-major: true
monorepo-tags: true
signoff: 'github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>'

# Initiate release process if release was created
# Initiate release process if release was created
release-package:
runs-on: ubuntu-latest
needs: [release-please]
strategy:
fail-fast: false
matrix:
package: ${{fromJson(needs.release-please.outputs.paths_released)}}
steps:
- name: Checkout credo-ts-didcomm-ext
uses: actions/checkout@v4
if: ${{ steps.release-please.outputs.release_created }}

- name: Setup node v20
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org/'
cache: yarn
if: ${{ steps.release-please.outputs.release_created }}

# Ignore scripts so we don't need libindy setup
- name: Install dependencies
run: yarn install --frozen-lockfile --ignore-scripts
if: ${{ steps.release-please.outputs.release_created }}

- name: Release to NPM
run: npm publish ./packages/${{ matrix.package }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
if: ${{ steps.release-please.outputs.release_created }}
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"calls": "0.0.1"
}
3 changes: 1 addition & 2 deletions packages/calls/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@2060.io/credo-ts-didcomm-calls",
"main": "build/index",
"types": "build/index",
"version": "0.1.0",
"version": "0.0.1",
"files": [
"build"
],
Expand All @@ -18,7 +18,6 @@
"directory": "packages/calls"
},
"scripts": {
"sample": "tsnd --respawn samples/sample.ts",
"build": "yarn run clean && yarn run compile",
"clean": "rimraf -rf ./build",
"compile": "tsc -p tsconfig.build.json",
Expand Down

0 comments on commit 458c297

Please sign in to comment.