diff --git a/.github/workflows/build-and-test.js.yml b/.github/workflows/build-and-test.js.yml index d5accadb..72dbd85a 100644 --- a/.github/workflows/build-and-test.js.yml +++ b/.github/workflows/build-and-test.js.yml @@ -10,8 +10,7 @@ jobs: strategy: matrix: - node-version: [16.x] - # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + node-version: [16, 18, 20] steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/publish-chromatic.yml b/.github/workflows/publish-chromatic.yml deleted file mode 100644 index 832f30e4..00000000 --- a/.github/workflows/publish-chromatic.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: Publish Chromatic - -on: - release: - types: [published] - -env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - -jobs: - check-and-publish: - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [16.x] - - steps: - - uses: actions/checkout@v3 - - - name: Setup Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - registry-url: https://npm.pkg.github.com/ - cache: 'npm' - - - name: Install Dependencies - run: npm ci - - - name: Build Project - run: npm run build:docs - - - name: Publish to Chromatic - working-directory: apps/docs - uses: chromaui/action@v1 - # Chromatic GitHub Action options - with: - # 👇 Chromatic projectToken - projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} diff --git a/.github/workflows/publish-packages.yml b/.github/workflows/publish-packages.yml index 43bfeef5..a7538efa 100644 --- a/.github/workflows/publish-packages.yml +++ b/.github/workflows/publish-packages.yml @@ -14,8 +14,9 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 20 cache: npm + registry-url: 'https://registry.npmjs.org' - name: Install Dependencies run: npm ci @@ -27,12 +28,10 @@ jobs: working-directory: packages/visu run: npm run test:coverage - - name: Create .npmrc - working-directory: packages/visu - run: echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > .npmrc - - name: Publish working-directory: packages/visu - run: npm publish + run: | + mv .npmrc.template .npmrc + npm publish --access public env: NODE_AUTH_TOKEN: ${{secrets.NPMJS_TOKEN}} diff --git a/apps/docs/package.json b/apps/docs/package.json index 578f3090..8cd5eaa2 100644 --- a/apps/docs/package.json +++ b/apps/docs/package.json @@ -1,7 +1,7 @@ { "name": "@droz-js/visu-docs", "private": true, - "version": "2.5.1", + "version": "2.5.2", "type": "module", "scripts": { "prepublishOnly": "npm run build", diff --git a/apps/web/package.json b/apps/web/package.json index 65c8712f..5d217f01 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -1,7 +1,7 @@ { "name": "@droz-js/visu-web", "private": true, - "version": "2.5.1", + "version": "2.5.2", "type": "module", "scripts": { "dev": "vite", diff --git a/package-lock.json b/package-lock.json index ed5b48fa..fc701319 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@droz-js/monorepo", - "version": "2.5.1", + "version": "2.5.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@droz-js/monorepo", - "version": "2.5.1", + "version": "2.5.2", "workspaces": [ "apps/*", "packages/*" @@ -43,7 +43,7 @@ }, "apps/docs": { "name": "@droz-js/visu-docs", - "version": "2.5.1", + "version": "2.5.2", "dependencies": { "@droz-js/visu": "*", "react": "^18.2.0", @@ -75,7 +75,7 @@ }, "apps/web": { "name": "@droz-js/visu-web", - "version": "2.5.1", + "version": "2.5.2", "dependencies": { "@droz-js/visu": "*", "react": "^18.2.0", @@ -30188,11 +30188,11 @@ }, "packages/tsconfig": { "name": "@droz-js/tsconfig", - "version": "2.5.1" + "version": "2.5.2" }, "packages/visu": { "name": "@droz-js/visu", - "version": "2.5.1", + "version": "2.5.2", "dependencies": { "@radix-ui/react-accordion": "^1.1.2", "@radix-ui/react-avatar": "^1.0.2", diff --git a/package.json b/package.json index aa21c33b..5cd0823e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@droz-js/monorepo", - "version": "2.5.1", + "version": "2.5.2", "private": true, "workspaces": [ "apps/*", diff --git a/packages/tsconfig/package.json b/packages/tsconfig/package.json index 9bacc128..86e5f73c 100644 --- a/packages/tsconfig/package.json +++ b/packages/tsconfig/package.json @@ -1,6 +1,6 @@ { "name": "@droz-js/tsconfig", - "version": "2.5.1", + "version": "2.5.2", "private": true, "files": [ "base.json", diff --git a/packages/visu/.npmrc.template b/packages/visu/.npmrc.template new file mode 100644 index 00000000..7c69a42f --- /dev/null +++ b/packages/visu/.npmrc.template @@ -0,0 +1,3 @@ +//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN} +registry=https://registry.npmjs.org/ +always-auth=true \ No newline at end of file diff --git a/packages/visu/package.json b/packages/visu/package.json index 73ebb274..3c1c39f9 100644 --- a/packages/visu/package.json +++ b/packages/visu/package.json @@ -1,7 +1,7 @@ { "name": "@droz-js/visu", "private": false, - "version": "2.5.1", + "version": "2.5.2", "publishConfig": { "registry": "https://registry.npmjs.org/", "access": "public"