From a72994709e3c621b2a7da8a00b278390be54014e Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Tue, 24 Oct 2023 08:30:57 -0400 Subject: [PATCH 1/3] build: Update release workflow to use the new release credentials. --- .github/workflows/release.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a178ed1432..57fdc47420 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,16 +10,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - token: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }} - - name: Setup Nodejs Env - run: echo "NODE_VER=`cat .nvmrc`" >> $GITHUB_ENV - name: Setup Node.js uses: actions/setup-node@v3 with: - node-version: ${{ env.NODE_VER }} + node-version-file: '.nvmrc' - name: Install dependencies run: npm ci - name: Lint @@ -34,8 +31,8 @@ jobs: uses: codecov/codecov-action@v3 - name: Release env: - GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }} + GITHUB_TOKEN: ${{ secrets.OPENEDX_SEMANTIC_RELEASE_GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.OPENEDX_SEMANTIC_RELEASE_NPM_TOKEN }} run: npx semantic-release - name: Deploy 🚀 uses: JamesIves/github-pages-deploy-action@4.1.4 From 7cefa7eb3165b3eb1d9688d4153b9a0191a7e4da Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Tue, 24 Oct 2023 08:33:05 -0400 Subject: [PATCH 2/3] fix: Update to deploy to the openedx scope. Update the package.json and README.md to publish this package to the `openedx` npm scope. --- README.md | 7 ------- package.json | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/README.md b/README.md index 33d4e55ea4..647c1151ee 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,5 @@ # Paragon -## Warning: Package Moved - -While the Paragon design system will continue to receive updates, these updates -will no longer be published at the @edx/paragon NPM package. Instead, the -latest versions can be found with -[@openedx/paragon](https://www.npmjs.com/package/@openedx/paragon) instead. - [![Build Status](https://github.com/openedx/paragon/actions/workflows/release.yml/badge.svg)](https://github.com/openedx/paragon/actions/workflows/release.yml) [![npm_version](https://img.shields.io/npm/v/@edx/paragon.svg)](@edx/paragon) ![status](https://img.shields.io/badge/status-Maintained-brightgreen) diff --git a/package.json b/package.json index a72e74374e..1afbc6ba1b 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "@edx/paragon", + "name": "@openedx/paragon", "version": "20.18.1", "description": "Accessible, responsive UI component library based on Bootstrap.", "main": "dist/index.js", From 250b965efa77d5ec1ad20dbcb39d1f8b26d8bd31 Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Tue, 24 Oct 2023 08:34:34 -0400 Subject: [PATCH 3/3] fix: Rebuild package-loc.json Rebuild the lock file after updating the package name. --- package-lock.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index e75f814d79..c4c53d0ca7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "@edx/paragon", + "name": "@openedx/paragon", "version": "20.18.1", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "@edx/paragon", + "name": "@openedx/paragon", "version": "20.18.1", "license": "Apache-2.0", "workspaces": [