Skip to content

Commit

Permalink
update pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann committed Nov 2, 2024
1 parent 7f3d257 commit d7baf7c
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 21 deletions.
26 changes: 18 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,32 +36,42 @@ jobs:
contents: write
id-token: write
steps:
- uses: actions/checkout@v4
with:
ref: 'main'
fetch-depth: 0
- uses: actions/setup-node@v4
- name: ⬇️ Checkout Code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: 📦 Setup pnpm
uses: pnpm/action-setup@v4

- name: 🐢 Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
node-version-file: '.nvmrc'
cache: 'pnpm'

- 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 "bot@webdriver.io"
git config --global user.name "WebdriverIO Release Bot"
- name: Install Dependencies
run: npm ci
run: pnpm install

- name: Build
run: npm run build
run: pnpm run build

- name: Release
run: npx release-it ${{github.event.inputs.releaseType}} --github.release --ci --npm.skipChecks --no-git.requireCleanWorkingDir --npm.tag=${{github.event.inputs.distTag}}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: ${{ github.event.inputs.preRelease == 'no' }}

- name: Pre-Release
run: npx release-it ${{github.event.inputs.releaseType}} --github.release --ci --npm.skipChecks --no-git.requireCleanWorkingDir --preRelease=alpha --github.preRelease --npm.tag=next
env:
Expand Down
30 changes: 17 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,26 @@ jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
- name: ⬇️ Checkout Code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: 📦 Setup pnpm
uses: pnpm/action-setup@v4

- name: 🐢 Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
- name: Install Dependencies
run: npm ci
- name: Install Example Project Dependencies
run: npm ci
working-directory: ./example
- name: Build
run: npm run build
node-version-file: '.nvmrc'
cache: 'pnpm'

- name: ⬇️ Install Dependencies
run: pnpm install

- name: 🏗️ Build
run: pnpm run build

- name: 🧪 Run Tests
uses: GabrielBB/xvfb-action@v1
with:
run: |
ln -s ../ ./node_modules/wdio-nuxt-service
npm test
run: npm test

0 comments on commit d7baf7c

Please sign in to comment.