Update CI/CD, added dev dependencies
All checks were successful
Checks / build (push) Successful in 19s
All checks were successful
Checks / build (push) Successful in 19s
This commit is contained in:
parent
f106226e70
commit
546efcd2d0
8 changed files with 1524 additions and 6 deletions
39
.forgejo/workflows/checks.yml
Normal file
39
.forgejo/workflows/checks.yml
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
name: Checks
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: [docker]
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
registry-url: ${{ vars.VERDACCIO_URL }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci --registry ${{ vars.VERDACCIO_URL }}
|
||||
env:
|
||||
VERDACCIO_URL: ${{ vars.VERDACCIO_URL }}
|
||||
NODE_AUTH_TOKEN: ${{ secrets.VERDACCIO_TOKEN }}
|
||||
|
||||
- name: Prettier
|
||||
run: npm run prettier:check
|
||||
|
||||
- name: ES Lint
|
||||
run: npm run lint
|
||||
|
||||
- name: Test
|
||||
run: npm run test
|
||||
|
||||
- name: Build
|
||||
run: npm run build
|
||||
|
||||
|
|
@ -1,8 +1,9 @@
|
|||
name: CI
|
||||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
tags:
|
||||
- "*.*.*"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
|
|
@ -17,9 +18,22 @@ jobs:
|
|||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '20'
|
||||
registry-url: ${{ vars.VERDACCIO_URL }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
run: npm ci --registry ${{ vars.VERDACCIO_URL }}
|
||||
env:
|
||||
VERDACCIO_URL: ${{ vars.VERDACCIO_URL }}
|
||||
NODE_AUTH_TOKEN: ${{ secrets.VERDACCIO_TOKEN }}
|
||||
|
||||
- name: Prettier
|
||||
run: npm run prettier:check
|
||||
|
||||
- name: ES Lint
|
||||
run: npm run lint
|
||||
|
||||
- name: Test
|
||||
run: npm run test
|
||||
|
||||
- name: Build
|
||||
run: npm run build
|
||||
|
|
@ -47,6 +61,9 @@ jobs:
|
|||
with:
|
||||
node-version: '20'
|
||||
registry-url: ${{ vars.VERDACCIO_URL }}
|
||||
env:
|
||||
VERDACCIO_URL: ${{ vars.VERDACCIO_URL }}
|
||||
NODE_AUTH_TOKEN: ${{ secrets.VERDACCIO_TOKEN }}
|
||||
|
||||
- name: Publish to NPM
|
||||
run: npm publish ./artifact --registry ${{ vars.VERDACCIO_URL }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue