Compare commits

...

7 commits

Author SHA1 Message Date
Ayo
ebee172a20 chore: release v5.0.1-beta.4
Some checks failed
Tests / Unit (push) Waiting to run
Tests / E2E (push) Waiting to run
Release / Changelog (push) Has been cancelled
Release / Publish to npm (push) Has been cancelled
Release / Publish to GitHub Packages (push) Has been cancelled
2026-07-05 19:13:22 +02:00
Ayo
cf153566f0 ci: publish gh package w/o scope
Some checks are pending
Tests / Unit (push) Waiting to run
Tests / E2E (push) Waiting to run
2026-07-05 19:12:55 +02:00
Ayo
5efc80d8e5 chore: release v5.0.1-beta.3
Some checks failed
Tests / Unit (push) Waiting to run
Tests / E2E (push) Waiting to run
Release / Changelog (push) Has been cancelled
Release / Publish to npm (push) Has been cancelled
Release / Publish to GitHub Packages (push) Has been cancelled
2026-07-05 18:51:04 +02:00
Ayo
5e18505760 chore: fix package repo
Some checks are pending
Tests / Unit (push) Waiting to run
Tests / E2E (push) Waiting to run
2026-07-05 17:25:19 +02:00
Ayo
9bfa2eff18 chore: release v5.0.1-beta.2
Some checks failed
Tests / Unit (push) Waiting to run
Tests / E2E (push) Waiting to run
Release / Changelog (push) Has been cancelled
Release / Publish to npm (push) Has been cancelled
Release / Publish to GitHub Packages (push) Has been cancelled
2026-07-05 17:20:08 +02:00
Ayo
0cbd01a926 ci: detect tagged release
Some checks are pending
Tests / Unit (push) Waiting to run
Tests / E2E (push) Waiting to run
2026-07-05 17:19:53 +02:00
Ayo
a40a29d191 chore: release v5.0.1-beta.1
Some checks failed
Tests / Unit (push) Waiting to run
Tests / E2E (push) Waiting to run
Release / Changelog (push) Has been cancelled
Release / Publish to npm (push) Has been cancelled
Release / Publish to GitHub Packages (push) Has been cancelled
2026-07-05 17:16:22 +02:00
2 changed files with 22 additions and 16 deletions

View file

@ -30,8 +30,6 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: read
# Mints the short-lived OIDC credential used for trusted publishing.
# No npm token is stored anywhere — this is the credential.
id-token: write
steps:
- uses: actions/checkout@v6
@ -46,18 +44,22 @@ jobs:
registry-url: 'https://registry.npmjs.org'
cache: pnpm
# Trusted publishing (OIDC) requires npm >= 11.5.1.
- name: Ensure npm supports trusted publishing
run: npm install -g npm@latest
- run: pnpm install --frozen-lockfile
- run: pnpm build
# No NODE_AUTH_TOKEN: npm authenticates via OIDC using the trusted
# publisher configured on npmjs.com. Provenance is generated
# automatically, so --provenance is not needed.
- name: Publish
run: npm publish --access public
run: |
VERSION="$(node -p "require('./package.json').version")"
if [[ "$VERSION" == *-* ]]; then
TAG="${VERSION#*-}"; TAG="${TAG%%.*}"
else
TAG="latest"
fi
echo "Publishing $VERSION to dist-tag '$TAG'"
npm publish --access public --tag "$TAG"
publish-gh-packages:
name: Publish to GitHub Packages
@ -76,19 +78,23 @@ jobs:
with:
node-version-file: .nvmrc
registry-url: 'https://npm.pkg.github.com'
scope: '@ayo-run'
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm build
# GitHub Packages requires a scoped name matching the repository owner.
# The scoped name applies only to this registry; npm keeps the
# unscoped "web-component-base".
- name: Scope package name for GitHub Packages
run: npm pkg set name="@ayo-run/web-component-base"
run: npm pkg set name="web-component-base"
- name: Publish
run: npm publish
run: |
VERSION="$(node -p "require('./package.json').version")"
if [[ "$VERSION" == *-* ]]; then
TAG="${VERSION#*-}"; TAG="${TAG%%.*}"
else
TAG="latest"
fi
echo "Publishing $VERSION to dist-tag '$TAG'"
npm publish --tag "$TAG"
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

View file

@ -1,6 +1,6 @@
{
"name": "web-component-base",
"version": "5.0.0",
"version": "5.0.1-beta.4",
"description": "A zero-dependency & tiny JS base class for creating reactive custom elements easily",
"type": "module",
"exports": {
@ -60,7 +60,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/ayo-run/web-component-base.git"
"url": "git+https://github.com/ayo-run/wcb.git"
},
"homepage": "https://WebComponent.io",
"keywords": [
@ -72,7 +72,7 @@
"author": "Ayo Ayco",
"license": "MIT",
"bugs": {
"url": "https://github.com/ayo-run/web-component-base/issues"
"url": "https://github.com/ayo-run/wcb/issues"
},
"devDependencies": {
"@eslint/js": "^9.39.2",