Skip to content

Commit

Permalink
chore: Update to push to new npm location (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
gyng authored Jun 24, 2023
1 parent 385f4f0 commit dee9775
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
branches:
- master
- release/*
workflow_dispatch:

jobs:
test:
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,14 @@ jobs:
packages: write
steps:
- name: Clone repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Build
run: docker-compose -f docker-compose.build.yml up --build --exit-code-from app

- name: Set up .npmrc for NPM
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: "17.x"
registry-url: "https://registry.npmjs.org"

- name: Publish to NPM
Expand All @@ -30,11 +29,11 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Set up .npmrc for GitHub Packages
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
registry-url: "https://npm.pkg.github.com"
# Defaults to the user or organization that owns the workflow file
scope: "@basisai"
scope: "@gyng"

- name: Publish to GitHub Packages
run: npm publish
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# remote-zip

[API documentation](https://basisai.github.io/remote-zip)
[API documentation](https://gyng.github.io/remote-zip)

Fetch file listings and individual files from a remote ZIP file.

Expand Down Expand Up @@ -28,16 +28,16 @@ The gist of what the library does is:
## Install

```bash
yarn add @basisai/remote-zip
yarn add @gyng/remote-zip
```

```bash
npm install --save @basisai/remote-zip
npm install --save @gyng/remote-zip
```

## Usage

See the [generated API documentation](https://basisai.github.io/remote-zip/).
See the [generated API documentation](https://gyng.github.io/remote-zip/).

If using in the browser, the server will need to whitelist CORS for `GET`, `HEAD`, and the `Range` header.

Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "@basisai/remote-zip",
"version": "0.2.4",
"name": "@gyng/remote-zip",
"version": "0.2.5",
"main": "lib/cjs/index.js",
"module": "lib/esm/index.js",
"types": "lib/types/index.d.ts",
"author": "AIcadium, Ng Guoyou <guoyou.ng@aicadium.ai>",
"author": "AIcadium, Ng Guoyou <gyng@users.noreply.github.com>",
"license": "MIT",
"files": [
"LICENSE",
Expand All @@ -13,7 +13,7 @@
],
"repository": {
"type": "git",
"url": "git://github.com/basisai/remote-zip.git"
"url": "git://github.com/gyng/remote-zip.git"
},
"scripts": {
"build": "rm -rf lib/* && yarn ts-types && node ./esbuild.mjs",
Expand Down

0 comments on commit dee9775

Please sign in to comment.