Skip to content

release: v8.2.0-rc.0 #83

release: v8.2.0-rc.0

release: v8.2.0-rc.0 #83

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: build
on:
push:
branches: [ master ]
jobs:
build_and_test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 18.19.1 ]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Installation
run: npm ci
- name: Build NgxForm
run: npm run build:ngx-form
env:
CI: true
- name: Linter
run: npm run lint
- name: Test
run: npm run test:ci
- name: Send coverage to Coverall
uses: coverallsapp/github-action@v1.0.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./coverage/ngx-form/lcov.info
- name: "Publish @paddls/ngx-form"
uses: pascalgn/npm-publish-action@1.3.9
with:
tag_name: "v%s"
tag_message: "v%s"
commit_pattern: "^release: v(\\S+)"
workspace: "./dist/ngx-form"
publish_args: "--access public"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN_PADDLS }}
- name: "PrePublish @witty-services/ngx-form"
uses: jossef/action-set-json-field@v1
with:
file: "./dist/ngx-form/package.json"
field: name
value: "@witty-services/ngx-form"
- name: "Publish @witty-services/ngx-form"
uses: pascalgn/npm-publish-action@1.3.9
with:
commit_pattern: "^release: v(\\S+)"
workspace: "./dist/ngx-form"
publish_args: "--access public"
create_tag: "false"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN_PADDLS }}