ci: drop gh packages publish
Some checks are pending
Tests / Unit (push) Waiting to run
Tests / E2E (push) Waiting to run

This commit is contained in:
ayo 2026-07-05 19:29:58 +02:00
parent 3a97b6356c
commit 16b1bf00b4

View file

@ -60,41 +60,3 @@ jobs:
fi
echo "Publishing $VERSION to dist-tag '$TAG'"
npm publish --access public --tag "$TAG"
publish-gh-packages:
name: Publish to GitHub Packages
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v4
with:
version: 11
- uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
registry-url: 'https://npm.pkg.github.com'
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm build
- name: Scope package name for GitHub Packages
run: npm pkg set name="web-component-base"
- name: 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 --access public --tag "$TAG"
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}