forked from appium/appium-espresso-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (38 loc) · 1.09 KB
/
publish.js.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Release
on:
workflow_dispatch:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: lts/*
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'temurin'
cache: gradle
- run: npm install --no-package-lock
name: Install dependencies
- run: npm run test
name: Run NPM Test
- run: |
rm -rf package-lock.json node_modules
# Remove dev and peer dependencies from node_modules
npm prune --omit=dev --omit=peer --no-package-lock
name: Remove dev dependencies and appium peer dependencies
- run: npm shrinkwrap --omit=dev --omit=peer
name: Create shrinkwrap
- run: npm install --only=dev --no-package-lock
name: Install dev dependencies for the release
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
name: Release