This repository has been archived by the owner on Nov 29, 2024. It is now read-only.
Merge pull request #6 from EnsoFinance/nezouse-refactor #50
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: Continuous Integration | |
on: | |
workflow_call: | |
pull_request: | |
push: | |
branches: | |
- main | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Use Node.js 18.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
registry-url: 'https://registry.npmjs.org' | |
- name: Use pnpm 8.x | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8.x | |
run_install: | | |
- recursive: true | |
args: [--frozen-lockfile] | |
- name: Lint | |
run: pnpm lint | |
- name: Test | |
run: pnpm test | |
- name: Build | |
run: pnpm build | |
- name: Upload build artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: dist | |
path: ./dist |