Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
Aitthi committed Dec 1, 2023
1 parent f425399 commit b03a825
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 26 deletions.
35 changes: 10 additions & 25 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ jobs:
with:
node-version: 18
check-latest: true
# cache: pnpm
- name: Install
uses: dtolnay/rust-toolchain@stable
if: ${{ !matrix.settings.docker }}
Expand Down Expand Up @@ -127,18 +126,6 @@ jobs:
name: bindings-${{ matrix.settings.target }}
path: ${{ env.APP_NAME }}.*.node
if-no-files-found: error
- name: Upload artifact index.js
uses: actions/upload-artifact@v3
with:
name: bindings-${{ matrix.settings.target }}
path: index.js
if-no-files-found: error
- name: Upload artifact index.d.ts
uses: actions/upload-artifact@v3
with:
name: bindings-${{ matrix.settings.target }}
path: index.d.ts
if-no-files-found: error
publish:
name: Publish
runs-on: ubuntu-latest
Expand All @@ -151,7 +138,6 @@ jobs:
with:
node-version: 18
check-latest: true
# cache: pnpm
- name: Install dependencies
run: npx pnpm install
- name: Download all artifacts
Expand All @@ -163,17 +149,16 @@ jobs:
- name: List packages
run: ls -R ./npm
shell: bash
- name: build ts
run: npx pnpm build
- name: List Dir
run: ls -la
shell: bash
- name: List artifacts
run: ls -la artifacts
shell: bash
- name: Publish
run: |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
# npm publish --access public
npx pnpm run publish:all
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Publish
# run: |
# echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
# # npm publish --access public
# npx pnpm run publish:all
# env:
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nylon-rs",
"version": "2.0.1",
"version": "2.0.2",
"description": "Nylon is a web framework for Node.js built with Tokio, Tower, Hyper, and Napi-rs",
"main": "index.js",
"repository": "https://github.com/Aitthi/nylon",
Expand Down

0 comments on commit b03a825

Please sign in to comment.