-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[EE-1663] migrate from jenkins to gha (#74)
* migrate from jenkins to gha * update * update readme
- Loading branch information
1 parent
fffaf4d
commit 3c6f542
Showing
6 changed files
with
114 additions
and
83 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: NPM Publish | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
semver: | ||
description: 'Semantic Version' | ||
required: true | ||
type: choice | ||
options: | ||
- patch | ||
- minor | ||
- major | ||
|
||
concurrency: | ||
group: npm-publish | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: npm | ||
|
||
- name: Configure GIT User | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Tray.io GHA" | ||
- name: Login to NPM | ||
run: npm config set //registry.npmjs.org/:_authToken=${{ secrets.CONNECTOR_UTILS_NPM_TOKEN }} | ||
|
||
- name: Install | ||
run: npm ci | ||
|
||
- name: Bump version | ||
run: npm version ${{ inputs.semver }} | ||
|
||
- name: Publish to NPM | ||
run: npm publish | ||
|
||
- name: Push Tags | ||
run: git push --tags | ||
|
||
- name: Create a Pull Request with the new version | ||
uses: peter-evans/create-pull-request@v4 | ||
with: | ||
token: ${{ github.token }} | ||
title: '[EE-1663] Update package version from npm publish' | ||
body: 'These changes were automatically produced by the "NPM Publish" workflow' | ||
base: master | ||
branch: gha/EE-1663/update-lock-file-from-npm-publish | ||
commit-message: Update package version from npm publish |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Pull Request | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
timeout-minutes: 5 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: npm | ||
|
||
- name: Install | ||
run: npm ci | ||
|
||
- name: Test | ||
run: npm test |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
10 |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.