Files
nx_post_support/.gitea/workflows/build_and_puplish.yml
T
Christoph b35fdb5876
/ build_and_publish (push) Failing after 6s
Update .gitea/workflows/build_and_puplish.yml
2025-01-08 09:10:12 +00:00

36 lines
1.2 KiB
YAML

on:
push:
tags:
- '*'
jobs:
build_and_publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: GitHub Tag Name example
run: |
echo "Tag name from GITHUB_REF_NAME: $GITHUB_REF_NAME"
echo "Tag name from github.ref_name: ${{ github.ref_name }}"
- name: Install NodeJS
uses: actions/setup-node@v4
with:
node-version: 20
- name: Bump Version of package.json
uses: ramonpaolo/bump-version@v2.3.1
with:
tag: ${{ github.ref_name }} # Accessing the context and get the reference_name, that in this case, is the tag that you created(ex: v1.0.0)
commit: true
branch_to_push: 'main'
- name: Install NPM Packages
run: npm i
- name: Install VSCE
run: npm -g i @vscode/vsce
- name: Build Package Files
run: npm run package
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.VSCODE_MARKETPALCE }}
registryUrl: https://marketplace.visualstudio.com