Skip to content

Commit

Permalink
Auto deploy (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashutosh-jena-mindfire authored Feb 5, 2024
2 parents 7bae643 + 7bb90b1 commit 5daeafe
Show file tree
Hide file tree
Showing 12 changed files with 6,041 additions and 1,033 deletions.
41 changes: 0 additions & 41 deletions .github/workflows/build.yml

This file was deleted.

60 changes: 60 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Deployment Workflow

on:
push:
branches:
- main
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 }}
30 changes: 0 additions & 30 deletions .github/workflows/cypress.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/docs.yml

This file was deleted.

Loading

0 comments on commit 5daeafe

Please sign in to comment.