Skip to content

Commit

Permalink
Merge pull request #2 from botpress/cc-refactor
Browse files Browse the repository at this point in the history
chore: refactor
  • Loading branch information
charlescatta authored Apr 4, 2024
2 parents fe43cb2 + fb58a5e commit dbe60da
Show file tree
Hide file tree
Showing 188 changed files with 6,303 additions and 24,648 deletions.
46 changes: 1 addition & 45 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,6 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 16

- name: Checkout zod-deno
uses: actions/checkout@v2
with:
token: ${{ secrets.ZOD_BOT_TOKEN }}
repository: colinhacks/zod-deno
path: deno/lib

- name: Install dependencies
run: |
yarn install
- name: Build
run: |
yarn clean
yarn build
cp logo.svg deno/lib
cp README.md deno/lib

- id: publish
name: Publish to NPM
Expand All @@ -58,16 +40,6 @@ jobs:
echo "Version in package.json has not changed. Skipping."
exit 0
- name: Push to Deno
if: steps.publish.outputs.type != 'none'
working-directory: deno/lib
run: |
git config --global user.email "[email protected]"
git config --global user.name "Zod Bot"
git add . -f
git commit -m "Build from zod $GITHUB_SHA" --allow-empty
git push
- name: Configure changelog
if: steps.publish.outputs.type != 'none'
run: |
Expand Down Expand Up @@ -100,20 +72,4 @@ jobs:
commitish: ${{ github.ref }}
body: ${{steps.github_release.outputs.changelog}}
draft: false
prerelease: false

- name: Create Deno release
if: steps.publish.outputs.type != 'none'
id: create_deno_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.ZOD_BOT_TOKEN }}
with:
tag_name: v${{ steps.publish.outputs.version }}
release_name: v${{ steps.publish.outputs.version }}
commitish: refs/heads/main
body: ${{steps.github_release.outputs.changelog}}
draft: false
prerelease: false
owner: colinhacks
repo: zod-deno
prerelease: false
28 changes: 0 additions & 28 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,34 +26,6 @@ jobs:
- run: yarn build
- run: yarn test

test-deno:
runs-on: ubuntu-latest
strategy:
matrix:
deno: ["v1.x"]
name: Test with Deno ${{ matrix.deno }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16
- uses: denolib/setup-deno@v2
with:
deno-version: ${{ matrix.deno }}
- run: yarn install
- run: yarn build:deno
- run: deno --version
- run: deno test
working-directory: ./deno/lib
- run: deno run ./index.ts
working-directory: ./deno/lib
- run: deno run ./mod.ts
working-directory: ./deno/lib
- run: |
deno bundle ./mod.ts ./bundle.js
deno run ./bundle.js
working-directory: ./deno/lib
lint:
runs-on: ubuntu-latest
strategy:
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ coverage
.idea
*.log
playground.ts
deno/lib/playground.ts
.eslintcache
workspace.code-workspace
.netlify
Expand Down
2 changes: 0 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
yarn build:deno
git add deno
99 changes: 0 additions & 99 deletions deno-build.mjs

This file was deleted.

Loading

0 comments on commit dbe60da

Please sign in to comment.