Skip to content

Commit b44daf5

Browse files
authored
fix: release pipeline (#1926)
Signed-off-by: Shurtu-gal <ashishpadhy1729@gmail.com>
1 parent 1369690 commit b44daf5

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/release-with-changesets.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ on:
1313
- alpha
1414
- next
1515

16-
env:
17-
CI: true
18-
1916
jobs:
2017
test-nodejs:
2118
# We just check the message of the first commit as there is always just one commit because we squash into one before merging
@@ -54,6 +51,7 @@ jobs:
5451
uses: actions/setup-node@v4
5552
with:
5653
node-version: "${{ steps.lockversion.outputs.version }}"
54+
registry-url: "https://registry.npmjs.org"
5755
- if: steps.lockversion.outputs.version == '18' && matrix.os == 'windows-latest'
5856
name: Install npm cli 8
5957
shell: bash
@@ -118,13 +116,14 @@ jobs:
118116

119117
- if: steps.packagejson.outputs.exists == 'true'
120118
name: Publish to any of NPM, Github, and Docker Hub
119+
#this step has 2 goals, it is either identifying that there is changeset file created and then this action creates a PR with version bump that will trigger release - or if it sees there is no changeset, and there are versions changes in package.json files, it publish new versions to NPM is they are not there yet
121120
uses: changesets/action@e0145edc7d9d8679003495b11f87bd8ef63c0cba # v1.5.3
122121
id: release
123122
with:
124123
version: npm run bump:version
125124
commit: "chore(release): release and bump versions of packages"
126125
title: "chore(release): release and bump versions of packages"
127-
publish: npx -p @changesets/cli@2.29.8 changeset publish
126+
publish: npx -p @changesets/cli@2.27.7 changeset publish
128127
setupGitUser: false
129128
env:
130129
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

0 commit comments

Comments
 (0)