Merge pull request 'chore: add config for workflow' (#29) from chore/fix-workflow-versioning into main
Some checks failed
Publish npm package / publish (push) Failing after 56s
Some checks failed
Publish npm package / publish (push) Failing after 56s
Reviewed-on: #29
This commit was merged in pull request #29.
This commit is contained in:
@@ -17,6 +17,20 @@ jobs:
|
||||
with:
|
||||
node-version: '20'
|
||||
|
||||
- name: Set version from tag
|
||||
run: |
|
||||
VERSION=${GITHUB_REF_NAME#v}
|
||||
echo "Setting package version to $VERSION"
|
||||
npm pkg set version="$VERSION"
|
||||
git config user.name "versioning"
|
||||
git config user.email "versioning@blassanto.me"
|
||||
git remote set-url origin https://x-token:${GITEA_TOKEN}@git.blassanto.me/blas/openapi-clean-arch-gen.git
|
||||
git add package.json
|
||||
git commit -m "chore: bump to version v${VERSION}"
|
||||
git push origin HEAD:main
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.TOKEN }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@blas/openapi-clean-arch-generator",
|
||||
"version": "1.0.0",
|
||||
"version": "0.0.1",
|
||||
"description": "Generador de código Angular con Clean Architecture desde OpenAPI/Swagger",
|
||||
"main": "dist/main.js",
|
||||
"bin": {
|
||||
|
||||
Reference in New Issue
Block a user