Skip to content

Commit

Permalink
Dev (#175)
Browse files Browse the repository at this point in the history
* 📦 ci(.github): added preview workflow for pull requests and docs now deplow to the gh-page

* 📦 ci(preview.yml): added workflow

* 📦 ci(preview-docs.yml): added build scripts for the documentation

* 📦 ci(fixed acions policy): fixed preview action workflow

* 🏗️ build(package.json): edited scripts to be compatible in both dev and prod

* 📝 docs(src): fixed typos and missing parameters. also removed redundant arguments

* 📝 docs(readme.md): rewrote the readme and fixed the svg logo

* 🧹 chore(docs): fixed logo, added text color to footer elements and cleaned the templates

* 📦 ci(release-please.yml): removed extra branch and added token for the workflow
  • Loading branch information
prjctimg authored Apr 7, 2024
1 parent 5efca61 commit f76c0fb
Show file tree
Hide file tree
Showing 30 changed files with 478 additions and 782 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/preview-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ jobs:
run: |
npm install
npm run docs
cd docs/assets && npm install
npm run deploy
cd docs/assets && npm install && npm run deploy
- name: Deploy PR Preview
uses: rossjrw/[email protected]
with:
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
push:
branches:
- main
- dev



permissions:
contents: write
Expand All @@ -18,6 +19,8 @@ jobs:
id: release
with:
release-type: node
target-branch: ${github.ref_name}}
token: ${{secrets.GH_PAT}}
# The logic below handles the npm publication:
- uses: actions/checkout@v4
# these if statements ensure that a publication only occurs when
Expand All @@ -28,9 +31,11 @@ jobs:
node-version: 20
registry-url: 'https://registry.npmjs.org'
if: ${{ steps.release.outputs.release_created }}
- run: npm i
if: ${{ steps.release.outputs.release_created }}



- run: |
npm install
npm test
npm run code:publish
npm publish
Expand Down
2 changes: 1 addition & 1 deletion .husky/pre-push
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
. "$(dirname -- "$0")/_/husky.sh"

# We cant push code that doesn't build.
npm test & npm run code:format
npm test
1 change: 0 additions & 1 deletion CNAME

This file was deleted.

Loading

0 comments on commit f76c0fb

Please sign in to comment.