From a6d2472b2ad9fd127fdb92ef4e87c252b321bf0c Mon Sep 17 00:00:00 2001 From: Kerem Date: Mon, 20 May 2024 14:02:00 +0200 Subject: [PATCH 1/3] update js release pipeline --- .github/workflows/js-release.yml | 11 ++++------- visual-js/CONTRIBUTING.md | 6 ++++++ 2 files changed, 10 insertions(+), 7 deletions(-) create mode 100644 visual-js/CONTRIBUTING.md diff --git a/.github/workflows/js-release.yml b/.github/workflows/js-release.yml index 4393d0f6..f6bb06b3 100644 --- a/.github/workflows/js-release.yml +++ b/.github/workflows/js-release.yml @@ -27,11 +27,8 @@ 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 + - name: Push to git + run: git push --follow-tags diff --git a/visual-js/CONTRIBUTING.md b/visual-js/CONTRIBUTING.md new file mode 100644 index 00000000..fe8c0bce --- /dev/null +++ b/visual-js/CONTRIBUTING.md @@ -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. From 9f69f6e93ce89b0a60f8b253e413c80d7952126e Mon Sep 17 00:00:00 2001 From: Kerem Date: Mon, 20 May 2024 14:38:32 +0200 Subject: [PATCH 2/3] add npm token to release pipeline --- .github/workflows/js-release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/js-release.yml b/.github/workflows/js-release.yml index f6bb06b3..208663b4 100644 --- a/.github/workflows/js-release.yml +++ b/.github/workflows/js-release.yml @@ -30,5 +30,7 @@ jobs: run: | npx changeset version npx changeset publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }} - name: Push to git run: git push --follow-tags From 7d43640d74f30914815228847f867c5a294fa227 Mon Sep 17 00:00:00 2001 From: Kerem Date: Mon, 20 May 2024 14:49:23 +0200 Subject: [PATCH 3/3] docs(changeset): Bump minor after GH migration --- visual-js/.changeset/tasty-cheetahs-talk.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 visual-js/.changeset/tasty-cheetahs-talk.md diff --git a/visual-js/.changeset/tasty-cheetahs-talk.md b/visual-js/.changeset/tasty-cheetahs-talk.md new file mode 100644 index 00000000..260066b4 --- /dev/null +++ b/visual-js/.changeset/tasty-cheetahs-talk.md @@ -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