-
Notifications
You must be signed in to change notification settings - Fork 21
41 lines (32 loc) · 944 Bytes
/
publish.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: Publish
on:
release:
types: [published]
jobs:
publish:
if: ${{ !github.event.release.draft }}
runs-on: ubuntu-latest
environment: release
steps:
- uses: DevExpress/testcafe-build-system/actions/prepare@main
with:
node-version: 18
- run: npm ci --force
- run: cd demo-app && npm i --force && cd ..
- run: npm run build
- shell: bash
run: |
mkdir .builds
npm pack --pack-destination .builds
npm pack -ws --pack-destination .builds || echo No workspaces
- uses: actions/upload-artifact@v3
with:
name: npm
path: |
.builds/
package-lock.json
- uses: DevExpress/testcafe-build-system/actions/login-npm@main
with:
token: ${{ secrets.NPM_TOKEN }}
- shell: bash
run: npx publish-please || (git status && false)