This commit is contained in:
parent
80d5799571
commit
9c3ddb1b06
@ -1,4 +1,4 @@
|
|||||||
name: Deploy
|
name: CreateVersion
|
||||||
run-name: ${{ gitea.actor }} build image and push to container registry
|
run-name: ${{ gitea.actor }} build image and push to container registry
|
||||||
|
|
||||||
on:
|
on:
|
||||||
@ -23,12 +23,11 @@ jobs:
|
|||||||
npm config set @frontend:registry=http://gitea.pena/api/packages/skeris/npm/
|
npm config set @frontend:registry=http://gitea.pena/api/packages/skeris/npm/
|
||||||
npm config set registry=https://registry.npmjs.org/
|
npm config set registry=https://registry.npmjs.org/
|
||||||
npm config set -- '//gitea.pena/api/packages/skeris/npm/:_authToken' "1856e802057f59193ca6fdb4068cbea44982bcc2"
|
npm config set -- '//gitea.pena/api/packages/skeris/npm/:_authToken' "1856e802057f59193ca6fdb4068cbea44982bcc2"
|
||||||
npm install --force
|
|
||||||
if [ "${{ github.ref }}" == "refs/heads/main" ]; then
|
if [ "${{ github.ref }}" == "refs/heads/main" ]; then
|
||||||
npm version major --no-git-tag-version
|
npm version major
|
||||||
elif [ "${{ github.ref }}" == "refs/heads/staging" ]; then
|
elif [ "${{ github.ref }}" == "refs/heads/staging" ]; then
|
||||||
npm version minor --no-git-tag-version
|
npm version minor
|
||||||
else
|
else
|
||||||
npm version patch --no-git-tag-version
|
npm version patch
|
||||||
fi
|
fi
|
||||||
npm publish
|
git push
|
||||||
|
25
.gitea/workflows/publish.yml
Normal file
25
.gitea/workflows/publish.yml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
name: PublishPkg
|
||||||
|
run-name: publish package
|
||||||
|
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- v*
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Publish:
|
||||||
|
runs-on: ["skeris"]
|
||||||
|
conainer:
|
||||||
|
image: gitea.pena:3000/penadevops/container-images/node-compose:main
|
||||||
|
steps:
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: http://gitea.pena:3000/PenaDevops/actions.git/checkout@v1
|
||||||
|
- name: Publish
|
||||||
|
run: |
|
||||||
|
git config --global user.email "kotilion.95@gmail.com"
|
||||||
|
git config --global user.name "skeris"
|
||||||
|
npm config set @frontend:registry=http://gitea.pena/api/packages/skeris/npm/
|
||||||
|
npm config set registry=https://registry.npmjs.org/
|
||||||
|
npm config set -- '//gitea.pena/api/packages/skeris/npm/:_authToken' "1856e802057f59193ca6fdb4068cbea44982bcc2"
|
||||||
|
npm publish
|
Loading…
Reference in New Issue
Block a user