Skip to content

Commit

Permalink
JS release updates (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
kb-kerem authored May 20, 2024
1 parent ed72709 commit 0384c59
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/js-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@ jobs:
yarn install
npm run build --workspaces --if-present
- name: upgrade & publish version(s)
## TODO version and publish commands need to be adjusted when we're confident with the pipeline
run: |
npx changeset version --snapshot migration
npx changeset publish --no-git-tag --snapshot
## TODO enable the git tagging when we're confident with the pipeline
##- name: Push to git
## run: |
## git push --follow-tags
npx changeset version
npx changeset publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }}
- name: Push to git
run: git push --follow-tags
9 changes: 9 additions & 0 deletions visual-js/.changeset/tasty-cheetahs-talk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@saucelabs/visual": minor
"@saucelabs/cypress-visual-plugin": minor
"@saucelabs/nightwatch-sauce-visual-service": minor
"@saucelabs/visual-storybook": minor
"@saucelabs/wdio-sauce-visual-service": minor
---

Bump minor after GH migration
6 changes: 6 additions & 0 deletions visual-js/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
## Using changesets

- Please use `npx changeset` command to instruct [changesets](https://github.com/changesets/changesets/tree/main) to generate the change summary and versioning information.
After you're done with the command you'll be able to see a .md file created in .changeset folder listing the packages and the type of release picked (major, minor or patch)

- Once the PR is merged, `JS (release)` GitHub action needs to be run manually. This action will run `npx changeset version` to update and commit the package.json files using the release information from the .md file. `npx changeset publish` is executed right after to publish the latest version to public npm registry.

0 comments on commit 0384c59

Please sign in to comment.