Update package.json #234
Workflow file for this run
This file contains 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: ci | |
on: [push] | |
jobs: | |
compile: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/[email protected] | |
- name: Set up node | |
uses: actions/[email protected] | |
with: | |
node-version: 20 | |
- name: Build - Install | |
run: npm i | |
- name: Build - Compile | |
run: npm run build | |
- name: Test - Start Compose | |
run: docker compose up -d | |
working-directory: tests/docker | |
- name: Test - RUN | |
run: npm test | |
env: | |
CONFIG__WAIT: 60 | |
CONFIG__SERVER__URL: http://localhost:8080 | |
- name: Test - Dump docker logs on failure | |
if: failure() | |
uses: jwalton/[email protected] | |
with: | |
images: 'squidex,squidex/resizer' | |
tail: '100' | |
- name: Test - Cleanup | |
if: always() | |
run: docker compose down | |
working-directory: tests/docker | |
- name: Publish to npm | |
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') | |
run: | | |
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN} | |
npm publish --access public | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |