Skip to content

Commit

Permalink
fix compilation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kevtechi committed Dec 19, 2024
1 parent a658592 commit 29d9e81
Show file tree
Hide file tree
Showing 11 changed files with 15,028 additions and 5,594 deletions.
33 changes: 20 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.x
# - name: Install Deno
# uses: denoland/setup-deno@v2
# with:
# deno-version: v2.x

- name: Set up Node.js
uses: actions/setup-node@v4
Expand All @@ -31,13 +31,13 @@ jobs:
run: echo "${{ secrets.ENV }}" > .env

- name: Install packages
run: deno install --allow-scripts
run: npm i

# - name: Run Tests
# run: npm test

- name: Build
run: deno task build
run: npm run build

- name: Fetch tags
run: git fetch --tags
Expand All @@ -64,30 +64,37 @@ jobs:
run: |
npm version --no-git-tag-version $(echo ${{ steps.parse_tag.outputs.tag }})
- name: Update Deno.json version
run: |
deno run --allow-read --allow-write ci/bump.ts $(echo ${{ steps.parse_tag.outputs.tag }})
# - name: Update Deno.json version
# run: |
# deno run --allow-read --allow-write ci/bump.ts $(echo ${{ steps.parse_tag.outputs.tag }})

- name: Commit changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "CW GitHub Action"
git add package.json
git add deno.json
git commit -m "Add compiled files & tag"
git push origin main
# - name: Commit changes
# run: |
# git config --local user.email "[email protected]"
# git config --local user.name "CW GitHub Action"
# git add package.json
# git add deno.json
# git commit -m "Add compiled files & tag"
# git push origin main

- name: Create tag
run: git tag ${{ steps.parse_tag.outputs.tag }}

- name: Push Tag
run: git push origin ${{ steps.parse_tag.outputs.tag }}

- name: Publish package
run: deno publish --unstable-sloppy-imports
# - name: Publish package
# run: deno publish --unstable-sloppy-imports

- name: Publish to npm
run: deno task npm-publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Expand Down
37 changes: 0 additions & 37 deletions deno.json

This file was deleted.

Loading

0 comments on commit 29d9e81

Please sign in to comment.