Skip to content

Commit

Permalink
Publish packages to npmjs.com and create a 1.0.0 release
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Henneke <dominik.henneke@nordeck.net>
  • Loading branch information
dhenneke committed Sep 25, 2023
1 parent aeacacb commit a05ce45
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
7 changes: 7 additions & 0 deletions .changeset/dirty-ways-guess.md
Original file line number Diff line number Diff line change
@@ -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.
11 changes: 4 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

4 changes: 2 additions & 2 deletions scripts/publishAllPackages.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});

Expand All @@ -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
Expand Down

0 comments on commit a05ce45

Please sign in to comment.