Skip to content

Commit

Permalink
chore: remove changeset pre exit from workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhsuresh committed Jan 4, 2024
1 parent 29dcb9a commit cd9852a
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/pr-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
uses: eficode/resolve-pr-refs@main
with:
token: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/checkout@v3
with:
ref: ${{ steps.refs.outputs.head_ref }}
Expand All @@ -39,18 +39,18 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'
registry-url: "https://registry.npmjs.org"
cache: "pnpm"

- name: Short SHA
id: vars
run: echo "sha_short=$(git rev-parse --short "$GITHUB_SHA")" >> $GITHUB_OUTPUT

- name: Extract the snapshot name from comment body
id: getSnapshotName
uses: actions/github-script@v6
with:
script: |
script: |
const splitComment = context.payload.comment.body.split(' ');
if(splitComment.length !== 2) {
return "${{ steps.vars.outputs.sha_short }}";
Expand All @@ -60,7 +60,7 @@ jobs:

- name: Install dependencies
run: pnpm install
env:
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1

- name: Build Packages
Expand All @@ -69,7 +69,6 @@ jobs:
- name: Bump Package Versions
id: changesets
run: |
pnpm changeset pre exit
pnpm changeset version --snapshot ${{ steps.getSnapshotName.outputs.result }} > changesets.output.txt 2>&1
echo ::set-output name=result::`cat changesets.output.txt`
env:
Expand Down Expand Up @@ -97,5 +96,5 @@ jobs:
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '```\n' + process.env.MESSAGE + '\n```',
body: 'Snapshot Release: ' + process.env.MESSAGE
})

0 comments on commit cd9852a

Please sign in to comment.