diff --git a/.github/workflows/create-prerelease-sdk.yml b/.github/workflows/create-prerelease-sdk.yml index 05a6eb3..677d91e 100644 --- a/.github/workflows/create-prerelease-sdk.yml +++ b/.github/workflows/create-prerelease-sdk.yml @@ -4,8 +4,7 @@ on: push: branches: - main - - dev/* - - develop/* + - develop jobs: build-and-test: diff --git a/.github/workflows/create-release-sdk.yml b/.github/workflows/create-release-sdk.yml index 31ac899..ef5d4bb 100644 --- a/.github/workflows/create-release-sdk.yml +++ b/.github/workflows/create-release-sdk.yml @@ -42,7 +42,10 @@ jobs: runs-on: ubuntu-latest environment: staging permissions: - contents: write + contents: write # to be able to publish a GitHub release + issues: write # to be able to comment on released issues + pull-requests: write # to be able to comment on released pull requests + id-token: write # to enable use of OIDC for npm provenance steps: - name: Checkout @@ -62,6 +65,9 @@ jobs: node-version: 20 cache: 'pnpm' + - name: Install dependencies + run: pnpm install + - name: Semantic Release uses: cycjimmy/semantic-release-action@v4 id: semantic # Need an `id` for output variables @@ -71,7 +77,6 @@ jobs: @semantic-release/release-notes-generator @semantic-release/changelog @semantic-release/github - @semantic-release/git @semantic-release/npm env: GITHUB_TOKEN: ${{ secrets.GH_PA_TOKEN }} diff --git a/.releaserc.prerelease.yaml b/.releaserc.prerelease.yaml index 4a1b392..1a328dd 100644 --- a/.releaserc.prerelease.yaml +++ b/.releaserc.prerelease.yaml @@ -8,9 +8,7 @@ plugins: branches: - "+([0-9])?(.{+([0-9]),x}).x" - main - - name: dev/* - prerelease: "beta" - - name: develop/* + - name: develop prerelease: 'beta' - name: hotfix/* prerelease: '${name.replace(/^hotfix\//g, "fix-").replace(/\//g, "-")}' diff --git a/.releaserc.yaml b/.releaserc.yaml index f3b48f5..1dffe20 100644 --- a/.releaserc.yaml +++ b/.releaserc.yaml @@ -2,7 +2,6 @@ plugins: - "@semantic-release/commit-analyzer" - "@semantic-release/release-notes-generator" - "@semantic-release/changelog" - - "@semantic-release/git" - "@semantic-release/github" - "@semantic-release/npm" diff --git a/package.json b/package.json index 1dc6bee..5c5cf71 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hypercerts-org/sdk", - "version": "2.0.0-alpha.37", + "version": "2.1.1", "description": "SDK for hypercerts protocol", "repository": "git@github.com:hypercerts-org/hypercerts-sdk.git", "author": "Hypercerts team",