2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-09-27 20:09:03 +00:00

CI: restore needing successful playwright build to publish

This commit is contained in:
Ronan Jouchet 2022-05-02 00:19:18 -04:00
parent 0afff67c11
commit 8bbc7cacbd

View File

@ -4,18 +4,28 @@ on:
types: types:
- created - created
jobs: jobs:
playwright:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1 # Setup .npmrc file to publish to npm
with:
node-version: '18' # Align the version of Node here with ci.yml.
registry-url: 'https://registry.npmjs.org'
- run: npm ci --no-fund # Will also (via `prepare` hook): 1. install ./app, 2. build
- run: npm run test:playwright
timeout-minutes: 5
build: build:
needs: playwright
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
# Setup .npmrc file to publish to npm - uses: actions/setup-node@v1 # Setup .npmrc file to publish to npm
- uses: actions/setup-node@v1
with: with:
# Align the version of Node here with ci.yml. node-version: '18' # Align the version of Node here with ci.yml.
node-version: '18'
registry-url: 'https://registry.npmjs.org' registry-url: 'https://registry.npmjs.org'
# Will also (through `prepare` hook): 1. install ./app, and 2. build - run: npm ci --no-fund # Will also (via `prepare` hook): 1. install ./app, 2. build
- run: npm ci --no-fund
- run: npm run test -- --testPathIgnorePatterns ".*playwright.*" - run: npm run test -- --testPathIgnorePatterns ".*playwright.*"
- run: npm run lint - run: npm run lint
- run: npm publish - run: npm publish
@ -23,7 +33,7 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
docker: docker:
needs: build needs: [ playwright, build ]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2