Merge pull request #78 from mmjmanders/v18 #50
Workflow file for this run
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: publish | |
on: | |
push: | |
tags: | |
- '**' | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 'latest' | |
run_install: false | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'pnpm' | |
cache-dependency-path: 'pnpm-lock.yaml' | |
registry-url: 'https://registry.npmjs.org' | |
- name: Install dependencies | |
run: pnpm install --prefer-offline --frozen-lockfile | |
- name: Build module | |
run: pnpm exec nx run ngx-iban:build | |
- name: Publish package | |
run: | | |
cp -v README.md LICENSE.md ./dist/ngx-iban | |
pnpm publish ./dist/ngx-iban --access public --no-git-checks --force | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |