@vtex/faststore-plugin-buyer-portal 1.3.16 → 1.3.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,69 @@
1
+ # This Action runs on experimental branch and publishes an experimental version to npm
2
+ name: CD Beta
3
+
4
+ on:
5
+ push:
6
+ branches:
7
+ - beta
8
+
9
+ jobs:
10
+ build:
11
+ name: BuyerPortal Beta
12
+ timeout-minutes: 15
13
+ runs-on: ubuntu-latest
14
+
15
+ steps:
16
+ - name: Check out code
17
+ uses: actions/checkout@v4
18
+ with:
19
+ fetch-depth: 2
20
+
21
+ - name: Setup Node.js environment
22
+ uses: actions/setup-node@v4
23
+ with:
24
+ node-version: 20
25
+ cache: "yarn"
26
+ registry-url: "https://registry.npmjs.org"
27
+
28
+ - name: Configure CI Git User
29
+ run: |
30
+ git config user.name vtexgithubbot
31
+ git config user.email vtexgithubbot@github.com
32
+
33
+ - name: Install dependencies
34
+ run: yarn
35
+
36
+ - name: Get current version
37
+ id: get_version
38
+ run: |
39
+ CURRENT_VERSION=$(node -p "require('./package.json').version")
40
+ echo "current_version=$CURRENT_VERSION" >> $GITHUB_OUTPUT
41
+
42
+ - name: Generate experimental version
43
+ id: generate_version
44
+ run: |
45
+ # Extract base version (remove any existing prerelease suffix)
46
+ BASE_VERSION=$(echo "${{ steps.get_version.outputs.current_version }}" | sed -E 's/(-.*)?$//')
47
+ # Generate timestamp-based identifier
48
+ TIMESTAMP=$(date +%Y%m%d%H%M%S)
49
+ # Create experimental version
50
+ EXPERIMENTAL_VERSION="${BASE_VERSION}-experimental.${TIMESTAMP}"
51
+ echo "experimental_version=$EXPERIMENTAL_VERSION" >> $GITHUB_OUTPUT
52
+ echo "Publishing experimental version: $EXPERIMENTAL_VERSION"
53
+
54
+ - name: Update package.json version
55
+ run: |
56
+ npm version ${{ steps.generate_version.outputs.experimental_version }} --no-git-tag-version
57
+
58
+ - name: Publish experimental version
59
+ run: yarn publish --non-interactive --tag experimental
60
+ env:
61
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
62
+
63
+ - name: Push changes and tags
64
+ run: |
65
+ git config user.email "vtexgithubbot@github.com"
66
+ git config user.name "vtexgithubbot"
67
+ git add package.json
68
+ git commit -m "chore: publish experimental version ${{ steps.generate_version.outputs.experimental_version }}" || echo "No changes to commit"
69
+ git push origin experimental || echo "No changes to push"
package/CHANGELOG.md CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.3.17] - 2025-11-03
11
+
12
+ ### Added
13
+
14
+ - Create BETA publish flow
15
+
10
16
  ## [1.3.16] - 2025-11-03
11
17
 
12
18
  ### Added
@@ -195,7 +201,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
195
201
  - Add CHANGELOG file
196
202
  - Add README file
197
203
 
198
- [unreleased]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v1.3.16...HEAD
204
+ [unreleased]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v1.3.17...HEAD
199
205
  [1.2.3]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v1.2.2...1.2.3
200
206
  [1.2.3]: https://github.com/vtex/faststore-plugin-buyer-portal/releases/tag/1.2.3
201
207
  [1.2.4]: https://github.com/vtex/faststore-plugin-buyer-portal/releases/tag/1.2.4
@@ -210,6 +216,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
210
216
 
211
217
  # <<<<<<< HEAD
212
218
 
219
+ [1.3.17]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v1.3.16...v1.3.17
213
220
  [1.3.16]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v1.3.15...v1.3.16
214
221
  [1.3.15]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v1.3.14...v1.3.15
215
222
  [1.3.14]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v1.3.13...v1.3.14
@@ -0,0 +1,23 @@
1
+ #!/bin/bash
2
+
3
+ BRANCH_NAME="beta"
4
+
5
+ echo "Attempting to checkout branch: $BRANCH_NAME"
6
+
7
+ git fetch --all
8
+
9
+ echo "Delete current $BRANCH_NAME"
10
+ git branch -D "$BRANCH_NAME"
11
+
12
+ echo "Create branch $BRANCH_NAME"
13
+ git checkout -b "$BRANCH_NAME"
14
+
15
+ git add .
16
+
17
+ echo "Update $BRANCH_NAME"
18
+ git commit -m "Update BETA environment"
19
+
20
+ git push --set-upstream origin +$BRANCH_NAME
21
+
22
+ echo "Go back to previous branch on local workspace"
23
+ git checkout -
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vtex/faststore-plugin-buyer-portal",
3
- "version": "1.3.16",
3
+ "version": "1.3.17",
4
4
  "description": "A plugin for faststore with buyer portal",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -8,7 +8,8 @@
8
8
  "lint:fix": "eslint . --ext .js,.jsx,.ts,.tsx --fix",
9
9
  "prepare": "husky",
10
10
  "release": "yarn release:stable",
11
- "release:stable": "yarn check --integrity && yarn release-it -c .release-it.json --ci --no-npm"
11
+ "release:stable": "yarn check --integrity && yarn release-it -c .release-it.json --ci --no-npm",
12
+ "release:beta": "./beta-release.sh"
12
13
  },
13
14
  "lint-staged": {
14
15
  "*.{js,jsx,ts,tsx}": [
@@ -13,4 +13,4 @@ export const LOCAL_STORAGE_LOCATION_EDIT_KEY = "bp_hide_edit_location_confirm";
13
13
  export const LOCAL_STORAGE_RECIPIENT_EDIT_KEY =
14
14
  "bp_hide_edit_recipient_confirm";
15
15
 
16
- export const CURRENT_VERSION = "1.3.16";
16
+ export const CURRENT_VERSION = "1.3.17";