File tree Expand file tree Collapse file tree 3 files changed +25
-25
lines changed
Expand file tree Collapse file tree 3 files changed +25
-25
lines changed Original file line number Diff line number Diff line change 2020 steps :
2121 - uses : actions/checkout@v3
2222 with :
23- token :
23+ token : ${{ secrets.FLOWCORE_MACHINE_GITHUB_TOKEN }}
2424 submodules : true
2525 - name : Extract version from package.json
2626 uses : sergeysova/jq-action@v2
@@ -29,12 +29,12 @@ jobs:
2929 cmd : ' jq .version package.json -r'
3030
3131 - name : Show my version
32- run : ' echo "version "'
32+ run : ' echo "version ${{ steps.version.outputs.value }} "'
3333
3434 - name : Setup Node.js environment
35353636 with :
37- node-version : " "
37+ node-version : " ${{ env.NODE_VERSION }} "
3838 registry-url : " https://registry.npmjs.org"
3939 cache : yarn
4040 - name : Yarn install
4747 - name : Build
4848 run : yarn build
4949 - name : Publish
50- run : yarn publish --access public --non-interactive --new-version
50+ run : yarn publish --access public --non-interactive --new-version ${{ steps.version.outputs.value }}
5151 env :
52- NODE_AUTH_TOKEN :
52+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change @@ -10,15 +10,15 @@ jobs:
1010 steps :
1111 - uses : actions/checkout@v3
1212 with :
13- token : ${{ secrets.GITHUB_TOKEN }}
13+ token : ${{ secrets.FLOWCORE_MACHINE_GITHUB_TOKEN }}
1414 submodules : true
15- - name : Extract version from package.json
15+ - name : Extract package name from package.json
1616 uses : sergeysova/jq-action@v2
1717 id : package
1818 with :
1919 cmd : ' jq .name package.json -r'
2020 - uses : google-github-actions/release-please-action@v3
2121 with :
22- token :
22+ token : ${{ secrets.FLOWCORE_MACHINE_GITHUB_TOKEN }}
2323 release-type : node
24- package-name :
24+ package-name : ${{ steps.package.outputs.value }}
Original file line number Diff line number Diff line change @@ -14,19 +14,19 @@ jobs:
1414 runs-on : ubuntu-latest
1515
1616 steps :
17- - uses : actions/checkout@v3
18- with :
19- token :
20- submodules : true
21- - name : Setup Node.js environment
22- 23- with :
24- node-version : " "
25- cache : yarn
26- - name : Yarn install
27- run : |
28- yarn install --frozen-lockfile
29- - name : Lint
30- run : yarn lint
31- - name : Test
32- run : yarn test --passWithNoTests
17+ - uses : actions/checkout@v3
18+ with :
19+ token : ${{ secrets.FLOWCORE_MACHINE_GITHUB_TOKEN }}
20+ submodules : true
21+ - name : Setup Node.js environment
22+ 23+ with :
24+ node-version : " ${{ env.NODE_VERSION }} "
25+ cache : yarn
26+ - name : Yarn install
27+ run : |
28+ yarn install --frozen-lockfile
29+ - name : Lint
30+ run : yarn lint
31+ - name : Test
32+ run : yarn test --passWithNoTests
You can’t perform that action at this time.
0 commit comments