Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,12 @@ jobs:
- name: Build
run: npm run build

- name: Commit
run: |
git add .
git commit -m "Release ${{ needs.setup_release.outputs.release_version }}"

- name: Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13 changes: 13 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Ignore JetBrains IDE files
.idea/

# Ignore node_modules
node_modules/
package.json
package-lock.json

# Ignore test coverage
junit.xml
coverage/

# this file must not have dist or it will not be published
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,10 @@ Common web assets for use in LizardByte projects.
## Installation
1. Add a `.npmrc` file to the root of your project with the following line:
```
@LizardByte:registry=https://npm.pkg.github.com
@lizardbyte:registry=https://npm.pkg.github.com
```

2. Add the dependency to your package.json file:
```json
{
"dependencies": {
"LizardByte/shared-web": "latest"
}
}
```bash
npm install LizardByte/shared-web
```
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"name": "@lizardbyte/shared-web",
"repository": "https://github.com/LizardByte/shared-web.git",
"repository": {
"url": "git+https://github.com/LizardByte/shared-web.git"
},
"version": "0.0.0",
"description": "Shared web assets for LizardByte projects",
"files": [
Expand Down