customerio-gist-web 3.6.4 → 3.6.9
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,41 @@
|
|
|
1
|
+
name: Release hotfix from master
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
|
|
6
|
+
jobs:
|
|
7
|
+
release:
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
steps:
|
|
10
|
+
- uses: actions/checkout@v3
|
|
11
|
+
with:
|
|
12
|
+
fetch-depth: 0
|
|
13
|
+
ref: master
|
|
14
|
+
token: ${{ secrets.SRE_GHACTIONS_TOKEN }}
|
|
15
|
+
- uses: actions-ecosystem/action-get-latest-tag@v1
|
|
16
|
+
id: get-latest-tag
|
|
17
|
+
- uses: actions-ecosystem/action-bump-semver@v1
|
|
18
|
+
id: bump-semver
|
|
19
|
+
with:
|
|
20
|
+
current_version: ${{ steps.get-latest-tag.outputs.tag }}
|
|
21
|
+
level: patch
|
|
22
|
+
- name: Release Package
|
|
23
|
+
shell: bash
|
|
24
|
+
env:
|
|
25
|
+
GIT_AUTH_TOKEN: ${{ secrets.SRE_GHACTIONS_TOKEN }}
|
|
26
|
+
run: |
|
|
27
|
+
git config user.name "ami-ci"
|
|
28
|
+
git config user.email "<>"
|
|
29
|
+
|
|
30
|
+
# Update the package.json version. Skip the git tag, we'll do that later
|
|
31
|
+
npm version ${{ steps.bump-semver.outputs.new_version }} --no-git-tag-version
|
|
32
|
+
|
|
33
|
+
# Commit the changed package.json file to master
|
|
34
|
+
git add package.json
|
|
35
|
+
git commit -m "Bump version to ${{ steps.bump-semver.outputs.new_version }}"
|
|
36
|
+
git push origin master
|
|
37
|
+
|
|
38
|
+
# Tag the new version
|
|
39
|
+
git tag ${{ steps.bump-semver.outputs.new_version }}
|
|
40
|
+
git push origin ${{ steps.bump-semver.outputs.new_version }}
|
|
41
|
+
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
name: Release new version from develop
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
inputs:
|
|
6
|
+
component:
|
|
7
|
+
description: 'Semantic version component to bump'
|
|
8
|
+
type: choice
|
|
9
|
+
required: true
|
|
10
|
+
options:
|
|
11
|
+
- 'patch'
|
|
12
|
+
- 'minor'
|
|
13
|
+
- 'major'
|
|
14
|
+
default: 'patch'
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
release:
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@v3
|
|
21
|
+
with:
|
|
22
|
+
fetch-depth: 0
|
|
23
|
+
ref: develop
|
|
24
|
+
token: ${{ secrets.SRE_GHACTIONS_TOKEN }}
|
|
25
|
+
- uses: actions-ecosystem/action-get-latest-tag@v1
|
|
26
|
+
id: get-latest-tag
|
|
27
|
+
- uses: actions-ecosystem/action-bump-semver@v1
|
|
28
|
+
id: bump-semver
|
|
29
|
+
with:
|
|
30
|
+
current_version: ${{ steps.get-latest-tag.outputs.tag }}
|
|
31
|
+
level: ${{ inputs.component }}
|
|
32
|
+
- name: Release Package
|
|
33
|
+
shell: bash
|
|
34
|
+
env:
|
|
35
|
+
GIT_AUTH_TOKEN: ${{ secrets.SRE_GHACTIONS_TOKEN }}
|
|
36
|
+
run: |
|
|
37
|
+
git config user.name "ami-ci"
|
|
38
|
+
git config user.email "<>"
|
|
39
|
+
git checkout develop
|
|
40
|
+
|
|
41
|
+
# Update the package.json version. Skip the git tag, we'll do that later
|
|
42
|
+
npm version ${{ steps.bump-semver.outputs.new_version }} --no-git-tag-version
|
|
43
|
+
|
|
44
|
+
# Commit the changed package.json file to develop
|
|
45
|
+
git add package.json
|
|
46
|
+
git commit -m "Bump version to ${{ steps.bump-semver.outputs.new_version }}"
|
|
47
|
+
git push origin develop
|
|
48
|
+
|
|
49
|
+
# Merge develop into master
|
|
50
|
+
git checkout master
|
|
51
|
+
git merge develop
|
|
52
|
+
git push origin master
|
|
53
|
+
|
|
54
|
+
# Tag the new version
|
|
55
|
+
git tag ${{ steps.bump-semver.outputs.new_version }}
|
|
56
|
+
git push origin ${{ steps.bump-semver.outputs.new_version }}
|
|
57
|
+
|
package/package.json
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "customerio-gist-web",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.9",
|
|
4
4
|
"description": "Build beautiful in-app flows with no code and deliver them instantly to your app. http://customer.io",
|
|
5
5
|
"private": false,
|
|
6
|
-
"browser": "dist/gist.min.js",
|
|
7
6
|
"scripts": {
|
|
8
7
|
"start": "npm-run-all --parallel watch:server watch:build",
|
|
9
8
|
"build:prod": "webpack -p --mode=production -o dist/gist.min.js",
|
|
10
9
|
"watch:build": "webpack --watch --progress --mode=development",
|
|
11
10
|
"watch:server": "http-server"
|
|
12
11
|
},
|
|
12
|
+
"browser": "dist/gist.min.js",
|
|
13
|
+
"exports": {
|
|
14
|
+
"require": "./dist/gist.min.js",
|
|
15
|
+
"import": "./src/index.js"
|
|
16
|
+
},
|
|
13
17
|
"author": "Customer.io (https://customer.io)",
|
|
14
18
|
"license": "SEE LICENSE IN LICENSE",
|
|
15
19
|
"devDependencies": {
|
|
16
|
-
"html-loader": "^1.1.0",
|
|
17
20
|
"http-server": "^0.12.3",
|
|
18
21
|
"npm-run-all": "^4.1.5",
|
|
19
22
|
"webpack": "^4.44.1",
|
|
@@ -21,6 +24,7 @@
|
|
|
21
24
|
},
|
|
22
25
|
"dependencies": {
|
|
23
26
|
"axios": "^0.21.1",
|
|
27
|
+
"html-loader": "^1.1.0",
|
|
24
28
|
"uuid": "^8.3.2"
|
|
25
29
|
},
|
|
26
30
|
"repository": {
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
name: Trigger a Gist Web Release
|
|
2
|
-
run-name: Release gist-web
|
|
3
|
-
|
|
4
|
-
on:
|
|
5
|
-
workflow_dispatch:
|
|
6
|
-
inputs:
|
|
7
|
-
version:
|
|
8
|
-
description: 'Semantic version change'
|
|
9
|
-
type: choice
|
|
10
|
-
required: true
|
|
11
|
-
options:
|
|
12
|
-
- 'patch'
|
|
13
|
-
- 'minor'
|
|
14
|
-
- 'major'
|
|
15
|
-
default: 'patch'
|
|
16
|
-
|
|
17
|
-
jobs:
|
|
18
|
-
release:
|
|
19
|
-
runs-on: ubuntu-latest
|
|
20
|
-
steps:
|
|
21
|
-
- name: Use Node.js 16
|
|
22
|
-
uses: actions/setup-node@v2
|
|
23
|
-
with:
|
|
24
|
-
node-version: 16
|
|
25
|
-
- name: Checkout
|
|
26
|
-
uses: actions/checkout@v3
|
|
27
|
-
with:
|
|
28
|
-
fetch-depth: 0
|
|
29
|
-
ref: develop
|
|
30
|
-
token: ${{ secrets.SRE_GHACTIONS_TOKEN }}
|
|
31
|
-
- name: Increment package.json version
|
|
32
|
-
uses: 'phips28/gh-action-bump-version@master'
|
|
33
|
-
env:
|
|
34
|
-
GITHUB_TOKEN: ${{ secrets.SRE_GHACTIONS_TOKEN }}
|
|
35
|
-
with:
|
|
36
|
-
version-type: '${{ inputs.version }}'
|
|
37
|
-
skip-tag: 'true'
|
|
38
|
-
- name: Extract new npm version
|
|
39
|
-
id: package-version
|
|
40
|
-
uses: martinbeentjes/npm-get-version-action@v1.3.1
|
|
41
|
-
- name: Release to master
|
|
42
|
-
shell: bash
|
|
43
|
-
env:
|
|
44
|
-
GIT_AUTH_TOKEN: ${{ secrets.SRE_GHACTIONS_TOKEN }}
|
|
45
|
-
run: |
|
|
46
|
-
git pull origin develop
|
|
47
|
-
git checkout master
|
|
48
|
-
git merge develop
|
|
49
|
-
git push origin master
|
|
50
|
-
git tag ${{ steps.package-version.outputs.current-version }}
|
|
51
|
-
git push origin ${{ steps.package-version.outputs.current-version }}
|
|
52
|
-
|
|
53
|
-
|