Skip to content

chore: update package lock file #8

chore: update package lock file

chore: update package lock file #8

Workflow file for this run

name: Deployment
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-22.04
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- run: npm ci
- run: npm run package
- name: Publish if version has been updated
uses: pascalgn/npm-publish-action@1.3.9
with:
tag_name: "%s"
create_tag: "true"
commit_pattern: "^chore: release (\\S+)"
workspace: "./dist/ng-tagcanvas"
publish_command: "npm"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- run: npm run build -- --base-href /ng-tagcanvas/ --deploy-url /ng-tagcanvas/
- name: Deploy page
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/master'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist/ng-tagcanvas-example