Skip to content

Commit

Permalink
Fix ci registry update (#7)
Browse files Browse the repository at this point in the history
* fix(ci): make release work

* fix(ci): remove npm

* fix(ci): more updates to release

* Update .github/actions/setup/action.yml

Co-authored-by: Liam Butler-Lawrence <[email protected]>

* Update .github/actions/setup/action.yml

Co-authored-by: Liam Butler-Lawrence <[email protected]>

---------

Co-authored-by: Liam Butler-Lawrence <[email protected]>
  • Loading branch information
gtokman and liambutler-lawrence authored May 4, 2024
1 parent ded4b80 commit 24db54c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 24 deletions.
6 changes: 6 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ runs:
node-version-file: packages/npm/send/.nvmrc
registry-url: "https://npm.pkg.github.com"

- name: Set up Git
shell: bash
run: |
git config --global user.email "[email protected]"
git config --global user.name "Candle Finance CI"
- name: Cache dependencies
id: yarn-cache
uses: actions/cache@v3
Expand Down
25 changes: 1 addition & 24 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,27 +25,4 @@ jobs:
run: yarn release
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

release-public:
needs: release-internal
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup
uses: ./.github/actions/setup

- name: Build package
run: yarn prepare

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: packages/npm/send/.nvmrc
registry-url: "https://registry.npmjs.org"

- name: Publish to npm
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
6 changes: 6 additions & 0 deletions packages/npm/send/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,12 @@
"registry": "https://npm.pkg.github.com"
}
},
"npm": {
"release": true,
"publishConfig": {
"registry": "https://registry.npmjs.org"
}
},
"plugins": {
"@release-it/conventional-changelog": {
"preset": "angular",
Expand Down

0 comments on commit 24db54c

Please sign in to comment.