From 98d305d29f89a813e88b2194c75629c71923d073 Mon Sep 17 00:00:00 2001 From: Exelo Date: Sat, 10 Jan 2026 08:38:25 +0100 Subject: [PATCH 1/2] ci: add release ci --- .github/workflows/release.yml | 50 ++++++++++++++++++++++++++++++++ .idea/betterCommentsSettings.xml | 31 ++++++++++++++++++++ 2 files changed, 81 insertions(+) create mode 100644 .github/workflows/release.yml create mode 100644 .idea/betterCommentsSettings.xml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..25b9524 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,50 @@ +name: Release + +on: + workflow_dispatch: + inputs: + dry_run: + description: Perform a dry run? + type: boolean + default: false + +permissions: + contents: write + +jobs: + npm-publish: + name: npm publish + runs-on: ubuntu-latest + if: github.repository_owner == 'NanoForge-dev' + steps: + - name: Checkout repository + uses: actions/checkout@v6 + + - name: Install Node.js v24 + uses: actions/setup-node@v6 + with: + node-version: 24 + package-manager-cache: false + registry-url: https://registry.npmjs.org/ + + - name: Install actions + id: actions + shell: bash + run: | + npm install -g @nanoforge-dev/actions && echo "ACTIONS_PATH=$(npm ls -gp @nanoforge-dev/actions)" >> $GITHUB_OUTPUT + + - name: Install dependencies + uses: ${{ steps.actions.outputs.ACTIONS_PATH }}/dist/pnpm-install + + - name: Build dependencies + run: pnpm run build + + - name: Release packages + uses: ${{ steps.actions.outputs.ACTIONS_PATH }}/dist/release-packages + with: + package: "@nanoforge-dev/schematics" + exclude: "" + dry: ${{ inputs.dry_run }} + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.idea/betterCommentsSettings.xml b/.idea/betterCommentsSettings.xml new file mode 100644 index 0000000..4f152ed --- /dev/null +++ b/.idea/betterCommentsSettings.xml @@ -0,0 +1,31 @@ + + + + + + \ No newline at end of file From 6f7ae0a7523f824d5d5778a12c62dc28eaeb33c2 Mon Sep 17 00:00:00 2001 From: Exelo Date: Sat, 10 Jan 2026 08:58:05 +0100 Subject: [PATCH 2/2] ci: fix using dynamic uses --- .github/workflows/release.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 25b9524..337473b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,17 +34,21 @@ jobs: npm install -g @nanoforge-dev/actions && echo "ACTIONS_PATH=$(npm ls -gp @nanoforge-dev/actions)" >> $GITHUB_OUTPUT - name: Install dependencies - uses: ${{ steps.actions.outputs.ACTIONS_PATH }}/dist/pnpm-install + uses: jenseng/dynamic-uses@v1 + with: + uses: ${{ steps.actions.outputs.ACTIONS_PATH }}/dist/pnpm-install - name: Build dependencies run: pnpm run build - name: Release packages - uses: ${{ steps.actions.outputs.ACTIONS_PATH }}/dist/release-packages + uses: jenseng/dynamic-uses@v1 with: - package: "@nanoforge-dev/schematics" - exclude: "" - dry: ${{ inputs.dry_run }} + uses: ${{ steps.actions.outputs.ACTIONS_PATH }}/dist/release-packages + with: | + package: "@nanoforge-dev/schematics" + exclude: "" + dry: ${{ inputs.dry_run }} env: NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}