Skip to content

build(deps): bump body-parser and express #111

build(deps): bump body-parser and express

build(deps): bump body-parser and express #111

Workflow file for this run

name: GitHub CI
on:
push:
branches: [ '**' ]
pull_request:
branches: [ '**' ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 18 ]
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Test
run: npm run test:ci
- name: Linter
run: npm run lint
- name: Build
run: npm run build
env:
CI: true
- name: Archive production artifact
if: github.ref == 'refs/heads/master'
uses: actions/upload-artifact@master
with:
name: ngx-common
path: ./dist/ngx-common
deploy-paddls:
name: Deploy @paddls
needs: build
if: "github.ref == 'refs/heads/master' && contains(github.event.head_commit.message, 'release: v')"
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 18 ]
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Download artifact
uses: actions/download-artifact@master
with:
name: ngx-common
path: ./dist/ngx-common
- name: Publish @paddls
uses: pascalgn/npm-publish-action@1.3.9
with:
tag_name: "v%s"
tag_message: "v%s"
commit_pattern: "^release: v(\\S+)"
publish_args: "--access public"
workspace: "./dist/ngx-common"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN_PADDLS }}
deploy-witty-services:
name: Deploy @witty-services
needs: build
if: "github.ref == 'refs/heads/master' && contains(github.event.head_commit.message, 'release: v')"
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 18 ]
steps:
- name: Download artifact
uses: actions/download-artifact@master
with:
name: ngx-common
path: ./dist/ngx-common
- name: PrePublish @witty-services
uses: jossef/action-set-json-field@v2.1
with:
file: ./dist/ngx-common/package.json
field: name
value: "@witty-services/ngx-common"
- name: Publish @witty-services
uses: pascalgn/npm-publish-action@1.3.9
with:
commit_pattern: "^release: v(\\S+)"
publish_args: "--access public"
create_tag: "false"
workspace: "./dist/ngx-common"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN_PADDLS }}