ci: drop gh packages publish
This commit is contained in:
parent
3a97b6356c
commit
16b1bf00b4
1 changed files with 0 additions and 38 deletions
38
.github/workflows/release.yml
vendored
38
.github/workflows/release.yml
vendored
|
|
@ -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}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue