-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
4dfcfee
commit 007ca46
Showing
7 changed files
with
1,006 additions
and
2,731 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
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,55 @@ | ||
name: Manual NPM Publish | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
releaseType: | ||
description: 'Release type - major, minor or patch' | ||
required: true | ||
default: 'patch' | ||
distTag: | ||
description: 'NPM tag (e.g. use "next" to release a test version)' | ||
required: true | ||
default: 'latest' | ||
|
||
env: | ||
NPM_TOKEN: ${{secrets.NPM_TOKEN}} | ||
|
||
jobs: | ||
authorize: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: octokit/request-action@v2.0.0 | ||
with: | ||
route: GET /orgs/:organisation/teams/:team/memberships/${{ github.actor }} | ||
team: technical-steering-committee | ||
organisation: webdriverio | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
release: | ||
needs: [authorize] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: 'master' | ||
fetch-depth: 0 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 14.x | ||
- name: NPM Setup | ||
run: | | ||
npm set registry "https://registry.npmjs.org/" | ||
npm set //registry.npmjs.org/:_authToken $NPM_TOKEN | ||
npm whoami | ||
- name: Git Setup | ||
run: | | ||
git config --global user.email "christian+webdriverio-release@saucelabs.com" | ||
git config --global user.name "WebdriverIO Release Bot" | ||
- name: Install Dependencies | ||
run: npm ci | ||
- name: Release | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | ||
name: Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
linux: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [10.x, 12.x, 14.x] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Install Dependencies | ||
run: npm install | ||
- name: Run Tests | ||
run: npm test |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.