diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ea31ec4..f65a978 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }} diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..3acfcc8 --- /dev/null +++ b/.npmignore @@ -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 diff --git a/README.md b/README.md index cec2688..bb5b074 100644 --- a/README.md +++ b/README.md @@ -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 ``` diff --git a/package.json b/package.json index cf10c02..906560f 100644 --- a/package.json +++ b/package.json @@ -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": [