Skip to content

Commit

Permalink
chore: rename pkg and publish to npmjs instead of github registry
Browse files Browse the repository at this point in the history
  • Loading branch information
ribeirojose committed Nov 9, 2024
1 parent edd6e4a commit 407d0e6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: Publish

on:
Expand All @@ -27,8 +24,7 @@ jobs:
with:
node-version: lts/*
cache: "yarn"
registry-url: "https://npm.pkg.github.com"
scope: "@bleu"
scope: "@bleu/builders"

- name: Install dependencies
run: yarn install --immutable
Expand All @@ -37,7 +33,7 @@ jobs:
if: github.ref == 'refs/tags/v*' # Only run on version tags
run: |
yarn build
npm login --registry=https://npm.pkg.github.com/ --scope=bleu
npm publish
npm login --scope=bleu.builders
npm publish --access public
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@bleu/ui",
"name": "@bleu.builders/ui",
"description": "",
"version": "0.1.133",
"author": "",
Expand Down Expand Up @@ -73,13 +73,9 @@
"release": true
},
"npm": {
"publish": true,
"publishArgs": "--registry=https://npm.pkg.github.com"
"publish": true
}
},
"publishConfig": {
"registry": "https://npm.pkg.github.com"
},
"engines": {
"node": ">=18.0.0"
},
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2183,9 +2183,9 @@ __metadata:
languageName: node
linkType: hard

"@bleu/ui@workspace:.":
"@bleu.builders/ui@workspace:.":
version: 0.0.0-use.local
resolution: "@bleu/ui@workspace:."
resolution: "@bleu.builders/ui@workspace:."
dependencies:
"@commitlint/cli": "npm:19.3.0"
"@commitlint/config-conventional": "npm:19.2.2"
Expand Down

0 comments on commit 407d0e6

Please sign in to comment.