Skip to content

Commit

Permalink
remove GHR publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
DenysVuika committed Dec 14, 2024
1 parent f640b4f commit b6614fd
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 23 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,20 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

publish-gpr:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
registry-url: https://npm.pkg.github.com/
#scope: '@DenysVuika'
- run: npm i
- run: echo registry=https://npm.pkg.github.com >> .npmrc
- run: npm run build.lib
- run: cd dist && npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.gpr_token}}
# publish-gpr:
# needs: build
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-node@v3
# with:
# node-version: 18
# cache: 'npm'
# registry-url: https://npm.pkg.github.com/
# #scope: '@DenysVuika'
# - run: npm i
# - run: echo registry=https://npm.pkg.github.com >> .npmrc
# - run: npm run build.lib
# - run: cd dist && npm publish --access public
# env:
# NODE_AUTH_TOKEN: ${{secrets.gpr_token}}
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ Live example: [Sandbox](https://codesandbox.io/embed/preact-translate-npm-tpe4f)

Minimal requirements: **Preact 10.0.0**

Add the `.npmrc` file to your project root if you are using [GitHub Package Registry](https://help.github.com/en/articles/about-github-package-registry)

```yaml
registry=https://npm.pkg.github.com
```

Using Yarn:

```sh
Expand Down

0 comments on commit b6614fd

Please sign in to comment.