-
Notifications
You must be signed in to change notification settings - Fork 12
Apps 9798 add publish job #238
Changes from 37 commits
90c122c
3fcd624
f1e9d06
3317be8
6443f31
5fa1f1a
15865da
4032922
f9310d5
21285b3
825b478
2915aee
94461e8
268b54f
f1731f8
b970aa4
f2efb4a
a6de87a
d97a993
86814a8
7d93daf
10d0b9f
53305c9
8f826f4
7535c31
968641c
08f5ea6
6fe9873
fa7efe8
a93ca8a
4942262
14ba5e3
02b55c3
ccc4fea
0749a17
e9f82da
eac2f6a
c35b316
c46c924
3cc816a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,14 @@ | ||
name: publish-package | ||
|
||
# Controls when the action will run. | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
push: | ||
branches: [ master ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
master_tests: | ||
name: Run e2e tests | ||
# This workflow contains a single job called "build" | ||
# The type of runner that the job will run on | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
@@ -40,5 +34,36 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
token: ${{ secrets.WDIO_TOKEN }} | ||
|
||
- name: Install packages | ||
run: yarn install | ||
|
||
- name: Release new package | ||
run: standard-version --dry-run | ||
run: | | ||
git config user.name ${{ secrets.USERNAME }} | ||
git config user.email "${{ secrets.MAIL }}" | ||
yarn release | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. need a better name for this phase. it's not releasing a package at this point There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
|
||
- name: push changes | ||
run: git push --follow-tags origin HEAD | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. use master instead of HEAD There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
|
||
- uses: JS-DevTools/npm-publish@v1 | ||
with: | ||
token: ${{ secrets.NPM_TOKEN }} | ||
|
||
slack_notification: | ||
needs: [ release_package ] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this will be executed only in case of success. need to send a message also in case of failure There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
name: Slack notification | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: sonots/slack-notice-action@v3 | ||
with: | ||
text: 'New release was published' | ||
icon_emoji: ':rocket:' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.WDIO_TOKEN }} | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_BOT_NOTIFICATION }} | ||
if: always() |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "wdio-allure-ts", | ||
"version": "3.0.1", | ||
"version": "3.0.18", | ||
"description": "UI E2E testing util", | ||
"license": "MIT", | ||
"author": "Cloudinary <[email protected]>", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line 15, better to use actions/checkout@v2 as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done