diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index facdea7..1b0a562 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -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 @@ -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 }} diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000..e002ef3 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + "calls": "0.0.1" +} diff --git a/packages/calls/package.json b/packages/calls/package.json index 43d019c..54cd337 100644 --- a/packages/calls/package.json +++ b/packages/calls/package.json @@ -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" ], @@ -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",