Manual NPM Publish #30
Workflow file for this run
This file contains hidden or 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
| name: Manual NPM Publish | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| releaseType: | |
| description: "Release Type" | |
| required: true | |
| type: choice | |
| default: "patch" | |
| options: | |
| - patch | |
| - minor | |
| - major | |
| distTag: | |
| description: 'NPM tag (e.g. use "next" to release a test version)' | |
| required: true | |
| default: 'latest' | |
| env: | |
| NPM_CONFIG_PROVENANCE: true | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| ref: 'main' | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0 | |
| with: | |
| node-version-file: .nvmrc | |
| registry-url: "https://registry.npmjs.org" | |
| - uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 | |
| with: | |
| version: 10.26.1 | |
| run_install: true | |
| - name: Git Setup | |
| run: | | |
| git config --global user.email "bot@webdriver.io" | |
| git config --global user.name "WebdriverIO Release Bot" | |
| - name: Install Dependencies | |
| run: pnpm install | |
| - name: Build | |
| run: | | |
| pnpm --filter "@wdio/devtools-script" build | |
| pnpm --filter "@wdio/devtools-app" build | |
| pnpm --filter "@wdio/devtools-backend" build | |
| pnpm --filter "@wdio/devtools-service" build | |
| pnpm --filter "@wdio/nightwatch-devtools" build | |
| - name: Release | |
| run: pnpm -r publish --access public --no-git-checks | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |