This repository has been archived by the owner on Nov 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Apps 9798 add publish job #238
Merged
Merged
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
90c122c
feat: add publish-package script
AlexeyCL 3fcd624
feat: add publish-package script
AlexeyCL f1e9d06
feat: add publish-package script
AlexeyCL 3317be8
feat: add publish-package script
AlexeyCL 6443f31
feat: add publish-package script
AlexeyCL 5fa1f1a
Merge remote-tracking branch 'origin/master' into APPS-9798-add-publi…
AlexeyCL 15865da
feat: add publish-package script
AlexeyCL 4032922
feat: add publish-package script
AlexeyCL f9310d5
feat: add publish-package script
AlexeyCL 21285b3
Update publish-package.yml
AlexeyCL 825b478
feat: add publish-package script
AlexeyCL 2915aee
Merge remote-tracking branch 'origin/APPS-9798-add-publish-job' into …
AlexeyCL 94461e8
feat: add publish-package script
AlexeyCL 268b54f
feat: add publish-package script
AlexeyCL f1731f8
feat: add publish-package script
AlexeyCL b970aa4
Create publish-package.yml
AlexeyCL f2efb4a
chore(release): 3.0.2
a6de87a
chore(release): 3.0.3
d97a993
chore(release): 3.0.4
86814a8
chore(release): 3.0.5
7d93daf
chore(release): 3.0.6
10d0b9f
chore(release): 3.0.7
53305c9
chore(release): 3.0.8
8f826f4
chore(release): 3.0.9
7535c31
chore(release): 3.0.10
968641c
chore(release): 3.0.11
08f5ea6
chore(release): 3.0.12
6fe9873
chore(release): 3.0.13
fa7efe8
chore(release): 3.0.14
a93ca8a
chore(release): 3.0.15
4942262
chore(release): 3.0.16
14ba5e3
chore(release): 3.0.17
02b55c3
chore(release): 3.0.18
ccc4fea
feat: add publish-package script
AlexeyCL 0749a17
Merge remote-tracking branch 'origin/APPS-9798-add-publish-job' into …
AlexeyCL e9f82da
feat: add publish-package script
AlexeyCL eac2f6a
feat: add publish-package script
AlexeyCL c35b316
feat: add publish-package script
AlexeyCL c46c924
feat: add publish-package script
AlexeyCL 3cc816a
feat: add publish-package script
AlexeyCL File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,20 @@ | ||
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: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/checkout@v2 | ||
with: | ||
token: ${{ secrets.WDIO_TOKEN }} | ||
- name: Use Node.js v12.x | ||
uses: actions/setup-node@v1 | ||
with: | ||
|
@@ -33,12 +29,47 @@ jobs: | |
- name: Run tests | ||
run: yarn test | ||
|
||
- uses: sonots/slack-notice-action@v3 | ||
with: | ||
status: ${{ job.status }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.WDIO_TOKEN }} | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_BOT_NOTIFICATION }} | ||
if: failure() | ||
|
||
release_package: | ||
needs: master_tests | ||
|
||
name: Release package | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Release new package | ||
run: standard-version --dry-run | ||
- uses: actions/checkout@v2 | ||
with: | ||
token: ${{ secrets.WDIO_TOKEN }} | ||
|
||
- name: Install packages | ||
run: yarn install | ||
|
||
- name: run standart version | ||
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 master | ||
|
||
- uses: JS-DevTools/npm-publish@v1 | ||
with: | ||
token: ${{ secrets.NPM_TOKEN }} | ||
|
||
- uses: sonots/slack-notice-action@v3 | ||
with: | ||
status: ${{ job.status }} | ||
text_on_success: 'New version wdio-allure-ts published successfully' | ||
text_on_fail: 'Publish failed, please check' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.WDIO_TOKEN }} | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_BOT_NOTIFICATION }} | ||
if: always() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]>", | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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