Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/publish-github.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Publish UI package to GitHub registry

on:
release:
types: [published]
workflow_dispatch:

jobs:
publish-github:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22.x'
cache: yarn

- name: Install dependencies
run: yarn install

- name: Build package
run: yarn build

- name: Publish to NPM
run: npm publish --scope=@internxt --registry=https://npm.pkg.github.com --tag latest
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17 changes: 7 additions & 10 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
name: Publish UI Package to npmjs
name: Publish UI package to NPM registry

on:
release:
types: [published]
workflow_dispatch:

jobs:
publish-ui:
publish-npm:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
packages: write

steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -26,12 +28,7 @@ jobs:
- name: Build package
run: yarn build

- name: Configure NPM registry
run: |
echo "registry=https://registry.npmjs.org/" > .npmrc
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc

- name: Publish to NPM
run: npm publish --scope=@internxt --access public
run: npm publish --scope=@internxt --registry=https://registry.npmjs.org/ --access public --tag latest
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
31 changes: 0 additions & 31 deletions .github/workflows/publish.yml

This file was deleted.

20 changes: 8 additions & 12 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,21 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]

steps:
- name: Checkout
- name: Checkout code
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- run: |
echo "@internxt:registry=https://npm.pkg.github.com/" > .npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.PERSONAL_ACCESS_TOKEN }}" >> .npmrc
node-version: '22.x'
cache: yarn

- name: Install dependencies
run: yarn
run: yarn install

- name: Build the project
- name: Build package
run: yarn build

- name: Run Tests
Expand Down