Some checks failed
CI Pipeline (nottags) / security (push) Successful in 17s
CI Pipeline (tags) / security (push) Successful in 17s
CI Pipeline (nottags) / test (push) Failing after 52s
CI Pipeline (tags) / test (push) Failing after 50s
CI Pipeline (tags) / release (push) Has been skipped
CI Pipeline (tags) / metadata (push) Has been skipped
123 lines
2.8 KiB
YAML
123 lines
2.8 KiB
YAML
name: "CI Pipeline (tags)"
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "*"
|
|
|
|
env:
|
|
NPMCI_TOKEN_NPM: ${{ secrets.NPMCI_TOKEN_NPM }}
|
|
NPMCI_TOKEN_NPM2: ${{ secrets.NPMCI_TOKEN_NPM2 }}
|
|
NPMCI_GIT_GITHUBTOKEN: ${{ secrets.NPMCI_GIT_GITHUBTOKEN }}
|
|
NPMCI_URL_CLOUDFLARE: ${{ secrets.NPMCI_URL_CLOUDFLARE }}
|
|
|
|
jobs:
|
|
security:
|
|
runs-on: ubuntu-latest
|
|
continue-on-error: true
|
|
container:
|
|
image: code.foss.global/host.today/ht-docker-node:npmci
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up npmci
|
|
run: npmci node install stable
|
|
|
|
- name: Prepare project
|
|
run: npmci npm prepare
|
|
|
|
- name: Audit production dependencies
|
|
run: npmci command npm audit --audit-level=high --only=prod
|
|
continue-on-error: true
|
|
|
|
- name: Audit development dependencies
|
|
run: npmci command npm audit --audit-level=high --only=dev
|
|
continue-on-error: true
|
|
|
|
test:
|
|
needs: security
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: code.foss.global/host.today/ht-docker-node:npmci
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up npmci
|
|
run: npmci node install stable
|
|
|
|
- name: Prepare project
|
|
run: npmci npm prepare
|
|
|
|
- name: Install dependencies
|
|
run: npmci npm install
|
|
|
|
- name: Run tests
|
|
run: npmci npm test
|
|
|
|
- name: Build project
|
|
run: npmci npm build
|
|
|
|
- name: Build documentation
|
|
run: npmci npm buildDocs
|
|
|
|
release:
|
|
needs: test
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: code.foss.global/host.today/ht-docker-node:npmci
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up npmci
|
|
run: npmci node install stable
|
|
|
|
- name: Prepare project
|
|
run: npmci npm prepare
|
|
|
|
- name: Install dependencies
|
|
run: npmci npm install
|
|
|
|
- name: Build project
|
|
run: npmci npm build
|
|
|
|
- name: Publish to npm
|
|
run: npmci npm publish
|
|
|
|
metadata:
|
|
needs: test
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: code.foss.global/host.today/ht-docker-node:npmci
|
|
continue-on-error: true
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up npmci
|
|
run: npmci node install stable
|
|
|
|
- name: Prepare project
|
|
run: npmci npm prepare
|
|
|
|
- name: Install dependencies
|
|
run: npmci npm install
|
|
|
|
- name: Build project
|
|
run: npmci npm build
|
|
|
|
- name: Generate documentation
|
|
run: npmci npm buildDocs
|
|
|
|
- name: Generate metadata
|
|
run: npmci command npm pack --dry-run --json
|
|
|
|
- name: Trigger further builds
|
|
run: npmci trigger
|
|
|
|
- name: Build and deploy docs
|
|
run: npmci node install stable && npmci npm prepare && npmci npm install && npmci npm buildDocs |