Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Apps 9798 add publish job #238

Merged
merged 40 commits into from
Jul 20, 2021
Merged
Show file tree
Hide file tree
Changes from 37 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
90c122c
feat: add publish-package script
AlexeyCL Jul 5, 2021
3fcd624
feat: add publish-package script
AlexeyCL Jul 5, 2021
f1e9d06
feat: add publish-package script
AlexeyCL Jul 5, 2021
3317be8
feat: add publish-package script
AlexeyCL Jul 5, 2021
6443f31
feat: add publish-package script
AlexeyCL Jul 5, 2021
5fa1f1a
Merge remote-tracking branch 'origin/master' into APPS-9798-add-publi…
AlexeyCL Jul 5, 2021
15865da
feat: add publish-package script
AlexeyCL Jul 6, 2021
4032922
feat: add publish-package script
AlexeyCL Jul 6, 2021
f9310d5
feat: add publish-package script
AlexeyCL Jul 6, 2021
21285b3
Update publish-package.yml
AlexeyCL Jul 6, 2021
825b478
feat: add publish-package script
AlexeyCL Jul 7, 2021
2915aee
Merge remote-tracking branch 'origin/APPS-9798-add-publish-job' into …
AlexeyCL Jul 7, 2021
94461e8
feat: add publish-package script
AlexeyCL Jul 7, 2021
268b54f
feat: add publish-package script
AlexeyCL Jul 7, 2021
f1731f8
feat: add publish-package script
AlexeyCL Jul 7, 2021
b970aa4
Create publish-package.yml
AlexeyCL Jul 7, 2021
f2efb4a
chore(release): 3.0.2
Jul 7, 2021
a6de87a
chore(release): 3.0.3
Jul 7, 2021
d97a993
chore(release): 3.0.4
Jul 7, 2021
86814a8
chore(release): 3.0.5
Jul 7, 2021
7d93daf
chore(release): 3.0.6
Jul 7, 2021
10d0b9f
chore(release): 3.0.7
Jul 7, 2021
53305c9
chore(release): 3.0.8
Jul 7, 2021
8f826f4
chore(release): 3.0.9
Jul 7, 2021
7535c31
chore(release): 3.0.10
Jul 7, 2021
968641c
chore(release): 3.0.11
Jul 7, 2021
08f5ea6
chore(release): 3.0.12
Jul 7, 2021
6fe9873
chore(release): 3.0.13
Jul 7, 2021
fa7efe8
chore(release): 3.0.14
Jul 7, 2021
a93ca8a
chore(release): 3.0.15
Jul 7, 2021
4942262
chore(release): 3.0.16
Jul 7, 2021
14ba5e3
chore(release): 3.0.17
Jul 7, 2021
02b55c3
chore(release): 3.0.18
Jul 7, 2021
ccc4fea
feat: add publish-package script
AlexeyCL Jul 7, 2021
0749a17
Merge remote-tracking branch 'origin/APPS-9798-add-publish-job' into …
AlexeyCL Jul 7, 2021
e9f82da
feat: add publish-package script
AlexeyCL Jul 7, 2021
eac2f6a
feat: add publish-package script
AlexeyCL Jul 7, 2021
c35b316
feat: add publish-package script
AlexeyCL Jul 7, 2021
c46c924
feat: add publish-package script
AlexeyCL Jul 18, 2021
3cc816a
feat: add publish-package script
AlexeyCL Jul 20, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/ci-pr-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: ci-pr-merge
# 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]
pull_request:
branches: [master]

Expand Down
41 changes: 33 additions & 8 deletions .github/workflows/publish-package.yml
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:
Expand All @@ -40,5 +34,36 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
Copy link
Collaborator

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

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
Copy link
Collaborator

Choose a reason for hiding this comment

The 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

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done


- name: push changes
run: git push --follow-tags origin HEAD
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use master instead of HEAD

Copy link
Collaborator Author

Choose a reason for hiding this comment

The 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 ]
Copy link
Collaborator

Choose a reason for hiding this comment

The 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

Copy link
Collaborator Author

Choose a reason for hiding this comment

The 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()
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.


### [3.0.1](https://github.com/cloudinary/wdio-allure-ts/compare/v3.0.0...v3.0.1) (2021-07-01)


Expand Down
2 changes: 1 addition & 1 deletion package.json
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]>",
Expand Down