Skip to content

chore: update package.json #8

chore: update package.json

chore: update package.json #8

Workflow file for this run

name: Deployment Workflow
on:
push:
branches:
- feature/issue-16
workflow_dispatch:
jobs:
build:
name: '@mindfiredigital/canvas-editor'
runs-on: ubuntu-latest
permissions:
contents: write
packages: read
steps:
- name: 'Checkout repository'
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: 'Install dependencies'
run: npm install
- name: 'Build application'
run: npm run lib
- name: 'Restore changes in json'
run: |
git restore package-lock.json
- name: 'Set Git user name and email'
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
create-github-release:
name: Create Github release document and publish to node
runs-on: ubuntu-latest
permissions:
contents: write
needs: build
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Semantic Release and npm release
run: |
npm ci
npx [email protected]
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}