fix deploy rules
All checks were successful
CreateVersion / Publish (push) Successful in 2s

This commit is contained in:
skeris 2025-05-14 15:13:31 +03:00
parent 80d5799571
commit 9c3ddb1b06
2 changed files with 30 additions and 6 deletions

@ -1,4 +1,4 @@
name: Deploy
name: CreateVersion
run-name: ${{ gitea.actor }} build image and push to container registry
on:
@ -23,12 +23,11 @@ jobs:
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 install --force
if [ "${{ github.ref }}" == "refs/heads/main" ]; then
npm version major --no-git-tag-version
npm version major
elif [ "${{ github.ref }}" == "refs/heads/staging" ]; then
npm version minor --no-git-tag-version
npm version minor
else
npm version patch --no-git-tag-version
npm version patch
fi
npm publish
git push

@ -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