This repository was archived by the owner on Oct 9, 2024. It is now read-only.
File tree 3 files changed +44
-1
lines changed
3 files changed +44
-1
lines changed Original file line number Diff line number Diff line change
1
+ See the release on NPM: https://www.npmjs.com/package/@chec/react-commercejs-hooks
2
+
3
+ ## Changelog
4
+
Original file line number Diff line number Diff line change
1
+ name : Publish
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ version :
7
+ description : ' Enter a valid semver version'
8
+ required : true
9
+
10
+ jobs :
11
+ build :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - uses : actions/checkout@v2
15
+ with :
16
+ fetch-depth : 0
17
+ - uses : actions/setup-node@v2
18
+ with :
19
+ node-version : ' 14.x'
20
+ registry-url : ' https://registry.npmjs.org'
21
+ - name : Setup Git
22
+ run : |
23
+ git config --local user.email "[email protected] "
24
+ git config --local user.name "GitHub Action"
25
+ - run : yarn install
26
+ - run : yarn build
27
+ - run : npm version ${{ github.event.inputs.version }}
28
+ - run : npm publish
29
+ env :
30
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
31
+ - run : ' git push origin master;git push --tags'
32
+ # Create a release with a changelog
33
+ - name : Create changelog from git log
34
+ run : git log --oneline --pretty=format:"* %s (%an) - %h" --no-merges $(git describe --abbrev=0 HEAD^)..HEAD~1 >> .github/workflows/changelog-template.txt
35
+ - name : Create release
36
+ uses : softprops/action-gh-release@v1
37
+ with :
38
+ tag_name : v${{ github.event.inputs.version }}
39
+ body_path : .github/workflows/changelog-template.txt
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export default function useCheckVariant() {
16
16
checkout . id ,
17
17
lineItemId ,
18
18
{
19
- variant_id : variantId ,
19
+ group_id : variantId ,
20
20
option_id : optionId ,
21
21
} ,
22
22
) . then ( ( result : any ) => {
You can’t perform that action at this time.
0 commit comments