Tag packages
All checks were successful
Publish Library / Build NPM Project (push) Successful in 9s
Publish Library / Tag Version (push) Successful in 5s

This commit is contained in:
Zakary Timson 2024-11-12 14:57:13 -05:00
parent 49ac759515
commit 4b627e3089
2 changed files with 18 additions and 1 deletions

View File

@ -25,3 +25,20 @@ jobs:
owner: ztimson owner: ztimson
registry: https://registry.npmjs.org/ registry: https://registry.npmjs.org/
token: ${{secrets.NPM_TOKEN}} token: ${{secrets.NPM_TOKEN}}
tag:
name: Tag Version
needs: build
if: ${{github.ref_name}} == 'release'
runs-on: ubuntu-latest
container: node:alpine
steps:
- name: Clone Repository
uses: ztimson/actions/clone@develop
- name: Get Version Number
run: echo "VERSION=$(cat server/package.json | grep version | grep -Eo ':.+' | grep -Eo '[[:alnum:]\.\/\-]+')" >> $GITHUB_ENV
- name: Tag Version
uses: ztimson/actions/tag@develop
with:
tag: ${{env.VERSION}}

View File

@ -4,7 +4,7 @@
"description": "CSS Utility Classes", "description": "CSS Utility Classes",
"readme": "README.md", "readme": "README.md",
"scripts": { "scripts": {
"build": "npx sass src/main.scss > dist/main.css && npx sass src/main.scss --style compressed > dist/main.min.css" "build": "npx sass src/main.scss > dist/css-utils.css && npx sass src/main.scss --style compressed > dist/css-utils.min.css"
}, },
"repository": { "repository": {
"type": "git", "type": "git",