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
24 changes: 12 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ name: internxt/lib CI

on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:

jobs:
test:
Expand All @@ -14,18 +12,20 @@ jobs:
packages: write
strategy:
matrix:
node-version: [22.x]
node-version: [24.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
- name: Checkout code
uses: actions/checkout@v6

- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://npm.pkg.github.com'

- run: yarn
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: yarn run lint && yarn run format && yarn run test
- name: Install dependencies
run: npm ci

- name: Tests
run: npm run lint && npm run format && npm run test
env:
CI: true
19 changes: 10 additions & 9 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,20 @@ jobs:
id-token: write
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: Checkout code
uses: actions/checkout@v6

- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: '22.x'
node-version: ${{ matrix.node-version }}

- run: |
echo "@internxt:registry=https://npm.pkg.github.com/" > .npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
- name: Install dependencies
run: npm ci

- run: yarn
- run: yarn run build
- name: Build
run: npm run build

# Change the registry to npmjs (to publish)
- run: |
echo "registry=https://registry.npmjs.org/" > .npmrc
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc
Expand Down
25 changes: 0 additions & 25 deletions .github/workflows/publish.yml

This file was deleted.

6 changes: 3 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
yarn lint
yarn lint-staged
yarn test
npm run lint
npx lint-staged
npm run test
3 changes: 3 additions & 0 deletions .npmrc.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
registry=https://registry.npmjs.org/

@internxt:registry=https://registry.npmjs.org/
Loading