use generic package for npm
This commit is contained in:
@@ -34,17 +34,24 @@ jobs:
|
|||||||
echo "TAG=$PREFIX:$VERSION" >> $GITHUB_OUTPUT
|
echo "TAG=$PREFIX:$VERSION" >> $GITHUB_OUTPUT
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
- name: Create .npmrc
|
# - name: Create .npmrc
|
||||||
run: |
|
# run: |
|
||||||
echo "registry=https://gitea.controller.bittehackmichnicht.de/api/packages/apps/npm/" > ~/.npmrc
|
# echo "registry=https://gitea.controller.bittehackmichnicht.de/api/packages/apps/npm/" > ~/.npmrc
|
||||||
echo "//gitea.controller.bittehackmichnicht.de/api/packages/apps/npm/:_authToken=${{ secrets.PUSH_TOKEN }}" >> ~/.npmrc
|
# echo "//gitea.controller.bittehackmichnicht.de/api/packages/apps/npm/:_authToken=${{ secrets.PUSH_TOKEN }}" >> ~/.npmrc
|
||||||
- name: Build & publish npm package
|
- name: Build & publish npm package
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ steps.generate_tag.outputs.VERSION }}
|
VERSION: ${{ steps.generate_tag.outputs.VERSION }}
|
||||||
run: |
|
run: |
|
||||||
npm version $VERSION --no-git-tag-version
|
npm version $VERSION --no-git-tag-version
|
||||||
npm run build
|
npm run build
|
||||||
npm publish --registry https://gitea.controller.bittehackmichnicht.de/api/packages/apps/npm/ --tag alpha
|
# zip
|
||||||
|
tar -czf "ptpChat-${VERSION}.tgz" -C dist/spa .
|
||||||
|
URL="https://gitea.controller.bittehackmichnicht.de/api/packages/apps/generic/ptp-chat-frontend/${VERSION}/ptpChat-${VERSION}.tgz"
|
||||||
|
echo "Uploading archive to $URL"
|
||||||
|
curl "$URL" \
|
||||||
|
-H "Authorization: token ${{ secrets.PUSH_TOKEN }}" \
|
||||||
|
--upload-file "ptpChat-${VERSION}.tgz"
|
||||||
|
# npm publish --registry https://gitea.controller.bittehackmichnicht.de/api/packages/apps/npm/ --tag alpha
|
||||||
- name: Build & publish image
|
- name: Build & publish image
|
||||||
env:
|
env:
|
||||||
TAG: ${{ steps.generate_tag.outputs.TAG }}
|
TAG: ${{ steps.generate_tag.outputs.TAG }}
|
||||||
|
|||||||
Reference in New Issue
Block a user