Skip to content

Commit

Permalink
fix(npm-publish-steps-on-develop-in-gha): check on develop branch wit…
Browse files Browse the repository at this point in the history
…hout trailing slash
  • Loading branch information
bitbeckers committed Aug 21, 2024
1 parent 590276e commit 50fa05c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/create-prerelease-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ on:
push:
branches:
- main
- dev/*
- develop/*
- develop

jobs:
build-and-test:
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/create-release-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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 }}
Expand Down
4 changes: 1 addition & 3 deletions .releaserc.prerelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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, "-")}'
Expand Down
1 change: 0 additions & 1 deletion .releaserc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 50fa05c

Please sign in to comment.