From a05ce452c8d799a4d83d01b7b6b33d831fd0338a Mon Sep 17 00:00:00 2001 From: Dominik Henneke Date: Fri, 15 Sep 2023 14:27:37 +0200 Subject: [PATCH] Publish packages to npmjs.com and create a 1.0.0 release Signed-off-by: Dominik Henneke --- .changeset/dirty-ways-guess.md | 7 +++++++ .github/workflows/ci.yml | 11 ++++------- .npmrc | 1 - scripts/publishAllPackages.js | 4 ++-- 4 files changed, 13 insertions(+), 10 deletions(-) create mode 100644 .changeset/dirty-ways-guess.md delete mode 100644 .npmrc diff --git a/.changeset/dirty-ways-guess.md b/.changeset/dirty-ways-guess.md new file mode 100644 index 0000000..817fa18 --- /dev/null +++ b/.changeset/dirty-ways-guess.md @@ -0,0 +1,7 @@ +--- +'@nordeck/element-web-guest-module': major +'@nordeck/element-web-widget-lifecycle-module': major +'@nordeck/synapse-guest-module': major +--- + +First stable release. diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d697e59..35fd566 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,8 +18,7 @@ jobs: with: node-version: '20' cache: 'yarn' - registry-url: 'https://npm.pkg.github.com' - scope: '@nordeck' + registry-url: 'https://registry.npmjs.org' - name: yarn install run: yarn install --frozen-lockfile @@ -125,8 +124,7 @@ jobs: with: node-version: '20' cache: 'yarn' - registry-url: 'https://npm.pkg.github.com' - scope: '@nordeck' + registry-url: 'https://registry.npmjs.org' - name: yarn install run: yarn install --frozen-lockfile @@ -148,7 +146,7 @@ jobs: publish: yarn release env: GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} - NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} e2e: name: Run e2e tests @@ -161,8 +159,7 @@ jobs: with: node-version: '20' cache: 'yarn' - registry-url: 'https://npm.pkg.github.com' - scope: '@nordeck' + registry-url: 'https://registry.npmjs.org' - name: yarn install run: yarn install --frozen-lockfile diff --git a/.npmrc b/.npmrc deleted file mode 100644 index f6913a8..0000000 --- a/.npmrc +++ /dev/null @@ -1 +0,0 @@ -@nordeck:registry=https://npm.pkg.github.com diff --git a/scripts/publishAllPackages.js b/scripts/publishAllPackages.js index baf7bd3..52a7d45 100644 --- a/scripts/publishAllPackages.js +++ b/scripts/publishAllPackages.js @@ -45,7 +45,7 @@ for (let p of packages) { console.log(`🔄 Publish package ${name}@${version}`); - child_process.execSync('npm publish --registry https://npm.pkg.github.com', { + child_process.execSync('npm publish --registry https://registry.npmjs.org', { cwd: packagePath, }); @@ -60,7 +60,7 @@ console.log('Done!'); function versionNeedsUpload(name, version) { try { const result = child_process.execSync( - `npm view "${name}@${version}" --registry https://npm.pkg.github.com --json`, + `npm view "${name}@${version}" --registry https://registry.npmjs.org --json`, ); // this line throws if not exists