Skip to content

Commit

Permalink
ci(publish): ensure dist is published (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher committed Aug 31, 2024
1 parent 440d20c commit ba40abe
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 9 deletions.
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

0 comments on commit ba40abe

Please sign in to comment.