diff --git a/.github/actions/release-os/action.yml b/.github/actions/release-os/action.yml new file mode 100644 index 00000000..fde5a55e --- /dev/null +++ b/.github/actions/release-os/action.yml @@ -0,0 +1,14 @@ + - 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" + + npm install + npm publish --dry-run \ No newline at end of file diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 9b27e958..27fd0919 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -15,8 +15,8 @@ jobs: fetch-depth: 0 fetch-tags: true - - name: Build - uses: ./libMvrGdtf/.github/actions/build-linux + # - name: Build + # uses: ./libMvrGdtf/.github/actions/build-linux - name: Add .npmrc env: @@ -24,12 +24,27 @@ jobs: run: | echo "//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}" > ~/.npmrc echo "@mvrdevelopment:registry=https://npm.pkg.github.com/" >> ~/.npmrc + + - name: Mock github user + run: | + git config --global user.email "simorolev@gmail.com" + git config --global user.name "Simeon Rolev" + + - uses: actions/setup-node@v4 + with: + node-version: 20 - name: Create Release env: GITHUB_TOKEN: ${{ secrets.NPM_PKG_KEY }} NODE_AUTH_TOKEN: ${{secrets.NPM_PKG_KEY}} - working-directory: libMvrGdtf + 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 run release + npm publish --dry-run diff --git a/package.json b/package.json index 4ce08176..88a03a1b 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,8 @@ }, "private": false, "scripts": { - "release": "auto shipit --base-branch=master" + "release": "auto shipit --base-branch=master", + "auto-latest": "auto latest --dry-run" }, "devDependencies": { "auto": "^11.2.1"