From 23ce9cc73d48570ab9611b7667d32f02f8e176dd Mon Sep 17 00:00:00 2001 From: Bas van den Aakster Date: Sat, 13 Sep 2025 15:04:38 +0200 Subject: [PATCH 1/2] =?UTF-8?q?###=20=F0=9F=94=A7=20Improvements=20-=20Add?= =?UTF-8?q?ed=20steps=20for=20automated=20version=20tagging=20in=20`versio?= =?UTF-8?q?n-and-publish.yml`=20-=20Configured=20workflow=20permissions=20?= =?UTF-8?q?for=20writing=20contents=20-=20Enhanced=20workflow=20to=20inclu?= =?UTF-8?q?de=20git=20tag=20creation=20and=20push=20after=20build=20steps?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/version-and-publish.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/version-and-publish.yml b/.github/workflows/version-and-publish.yml index 33c2250..7666f01 100644 --- a/.github/workflows/version-and-publish.yml +++ b/.github/workflows/version-and-publish.yml @@ -8,6 +8,8 @@ on: jobs: publish: runs-on: ubuntu-latest + permissions: + contents: write steps: - name: Checkout code uses: actions/checkout@v4 @@ -30,6 +32,17 @@ jobs: - name: Run build run: pnpm build + - name: Get package version + id: package-version + run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT + + - name: Create and push git tag + run: | + git config user.name "GitHub Actions" + git config user.email "actions@github.com" + git tag -a "v${{ steps.package-version.outputs.version }}" -m "Release v${{ steps.package-version.outputs.version }}" + git push origin "v${{ steps.package-version.outputs.version }}" + - name: Publish to NPM run: pnpm publish --access public --no-git-checks env: From d672ebace27167a83f5ce6fa52d0acb40cc48764 Mon Sep 17 00:00:00 2001 From: Bas van den Aakster Date: Sat, 13 Sep 2025 15:06:26 +0200 Subject: [PATCH 2/2] =?UTF-8?q?###=20=F0=9F=9B=A0=20Maintenance=20-=20Bump?= =?UTF-8?q?ed=20version=20in=20`package.json`=20from=20`0.0.3`=20to=20`0.0?= =?UTF-8?q?.4`.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e9ef4b7..5fa343b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@xtr-dev/payload-mailing", - "version": "0.0.3", + "version": "0.0.4", "description": "Template-based email system with scheduling and job processing for PayloadCMS", "type": "module", "main": "dist/index.js",