Skip to content

Commit

Permalink
Action for commiting OS package
Browse files Browse the repository at this point in the history
  • Loading branch information
SimeonRolev committed Oct 7, 2024
1 parent 0b217c8 commit 14d8fe1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 24 deletions.
30 changes: 17 additions & 13 deletions .github/actions/release-os/action.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.NPM_PKG_KEY }}
NODE_AUTH_TOKEN: ${{secrets.NPM_PKG_KEY}}
working-directory: libMvrGdtf
run: |
git checkout -b release/linux
node scripts/json-updater.js --name @mvrdevelopment/lib-gdtf-linux --os "linux" --files "package.json"
npm version patch --no-git-tag-version
git add .
git commit -m "Package prepare"
name: Release OS package
description: Release the package for a particular OS
runs:
using: "composite"
steps:
- name: Release OS pacakge
shell: bash
working-directory: libMvrGdtf
run: |
export OS=$(node -e "console.log(process.platform)")
git checkout -b release/$OS
node scripts/json-updater.js --name @mvrdevelopment/lib-gdtf-$OS --os $OS --files "output"
npm version patch --no-git-tag-version
git add .
git commit -m "Prepare OS package.json"
npm install
npm publish --dry-run
npm install
npm publish --dry-run
13 changes: 2 additions & 11 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,8 @@ jobs:
with:
node-version: 20

- name: Create Release
- name: Release OS
uses: ./libMvrGdtf/.github/actions/release-os
env:
GITHUB_TOKEN: ${{ secrets.NPM_PKG_KEY }}
NODE_AUTH_TOKEN: ${{secrets.NPM_PKG_KEY}}
working-directory: libMvrGdtf
run: |
git checkout -b release/linux
node scripts/json-updater.js --name @mvrdevelopment/lib-gdtf-linux --os "linux" --files "package.json"
npm version patch --no-git-tag-version
git add .
git commit -m "Package prepare"
npm install
npm publish --dry-run

0 comments on commit 14d8fe1

Please sign in to comment.