Skip to content

Commit

Permalink
🦢 Complete switch over to npmjs registry
Browse files Browse the repository at this point in the history
  • Loading branch information
benc-uk committed Dec 6, 2024
1 parent 86e6fe1 commit 88b7f0a
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 17 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,12 @@ jobs:
npm run lint
npm run check
# Build step is disabled as Githhub NPM support is kinda crappy compared to npmjs.org
build:
runs-on: ubuntu-latest
needs: lint-check

# Only run on main branch
if: github.ref == '!!!DISABLED_FOR_NOW!!! refs/heads/main'
## sif: github.ref == 'refs/heads/main'

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -80,7 +79,7 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}

- name: Publish prerelease to Github Packages
- name: Publish prerelease to npmjs registry
run: |
npm publish --tag=pre
env:
Expand Down
1 change: 0 additions & 1 deletion example-ts-vite/.npmrc

This file was deleted.

11 changes: 5 additions & 6 deletions example-ts-vite/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion example-ts-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"vite": "^4.4.7"
},
"dependencies": {
"@benc-uk/gsots3d": "file:.."
"gsots3d": "file:.."
}
}
2 changes: 1 addition & 1 deletion example-ts-vite/src/demo.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import './style.css'

import { initResizer, isMobile } from './screen.ts'
import { Context, Material, Colours, Instance } from '@benc-uk/gsots3d'
import { Context, Material, Colours, Instance } from 'gsots3d'

// Init the app a bit like React :)
const appDiv = document.querySelector<HTMLDivElement>('#app')
Expand Down
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
"license": "MIT",
"homepage": "https://code.benco.io/gsots3d/docs",
"type": "module",
"publishConfig": {
"@benc-uk:registry": "https://npm.pkg.github.com"
},
"repository": {
"type": "git",
"url": "https://github.com/benc-uk/gsots3d.git"
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ The hello world equivalent in GSOTS is putting a simple object on the screen, Th

#### Import as package

The NPM package is published on [NPMJS.com](https://www.npmjs.com/package/gsots3d, to install the package, simply run:
The NPM package is published on [NPMJS.com](https://www.npmjs.com/package/gsots3d), to install the package, simply run:

```bash
npm install benc-uk/gsots3d
npm install gsots3d
```

#### Directly in browser
Expand Down

0 comments on commit 88b7f0a

Please sign in to comment.