generated from saucelabs/new-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
710d006
commit 7a70692
Showing
5 changed files
with
4,929 additions
and
359 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,54 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
releaseType: | ||
description: 'Release type - major, minor or patch' | ||
required: true | ||
default: 'patch' | ||
preReleaseFlavor: | ||
description: 'Pre-Release flavor - rc, beta, or anything. Pre-Releases are always patch releases.' | ||
required: false | ||
default: '' | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.ref }} | ||
fetch-depth: 0 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: 'npm' | ||
|
||
- name: Install Dependencies | ||
run: npm ci | ||
|
||
- name: Setup Git | ||
run: | | ||
git config --global user.name "devx-sauce-bot" | ||
git config --global user.email "[email protected]" | ||
- name: Setup NPM | ||
run: npm set "//registry.npmjs.org/:_authToken" ${{ secrets.NPM_TOKEN }} | ||
|
||
- name: Pre-Release | ||
if: ${{ github.event.inputs.preReleaseFlavor != '' }} | ||
run: npm run release:ci -- --preRelease=${{ github.event.inputs.preReleaseFlavor }} | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Release | ||
if: ${{ github.event.inputs.preReleaseFlavor == '' }} | ||
run: npm run release:ci -- ${{ github.event.inputs.releaseType }} | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |
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,4 +1,4 @@ | ||
We acknowledge that every line of code that we write may potentially contain security issues. | ||
We are trying to deal with it responsibly and provide patches as quickly as possible. | ||
We are trying to deal with it responsibly and provide patches as quickly as possible. | ||
|
||
Please contact us via [E-Mail](mailto:opensource@saucelabs.com) immediately after discovery of the vulnerability. Thanks! | ||
Please contact us via [E-Mail](mailto:devx@saucelabs.com) immediately after discovery of the vulnerability. Thanks! |
Oops, something went wrong.