Skip to content

Commit c516f7b

Browse files
BayheckBayheck
and
Bayheck
authored
update: publish jobs update (#8317)
<!-- Thank you for your contribution. Before making a PR, please read our contributing guidelines at https://github.com/DevExpress/testcafe/blob/master/CONTRIBUTING.md#code-contribution We recommend creating a *draft* PR, so that you can mark it as 'ready for review' when you are done. --> ## Purpose _Describe the problem you want to address or the feature you want to implement._ ## Approach _Describe how your changes address the issue or implement the desired functionality in as much detail as possible._ ## References _Provide a link to the existing issue(s), if any._ ## Pre-Merge TODO - [ ] Write tests for your proposed changes - [ ] Make sure that existing tests do not fail Co-authored-by: Bayheck <adil.rakhaliyev@devexpress.com>
1 parent f3fe938 commit c516f7b

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

.github/workflows/publish.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,27 @@ on:
55
types: [published]
66

77
jobs:
8-
publish:
8+
npm-publish:
99
if: ${{ !github.event.release.draft }}
1010
runs-on: ubuntu-latest
1111
environment: release
12+
steps:
13+
- uses: actions/checkout@v3
14+
with:
15+
ref: ${{ github.event.release.target_commitish }}
16+
- run: git fetch --force --tags
17+
- uses: actions/setup-node@v3
18+
with:
19+
node-version: 18
20+
registry-url: 'https://registry.npmjs.org'
21+
- run: npm install
22+
- run: npm run publish-please-only
23+
env:
24+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
25+
docker-publish:
26+
needs: npm-publish
27+
runs-on: ubuntu-latest
28+
environment: release
1229
steps:
1330
- uses: actions/checkout@v3
1431
with:
@@ -23,6 +40,6 @@ jobs:
2340
username: ${{ secrets.DOCKERHUB_USERNAME }}
2441
password: ${{ secrets.DOCKERHUB_TOKEN }}
2542
- run: npm install
26-
- run: npm run publish-please-only
43+
- run: gulp docker-publish
2744
env:
2845
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.publishrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
"confirm": false,
1111
"publishTag": "rc",
1212
"prePublishScript": "gulp test-server",
13-
"postPublishScript": "gulp docker-publish"
13+
"postPublishScript": ""
1414
}

0 commit comments

Comments
 (0)