From 5129b902eb1bf7be03550004d0f0065a88279837 Mon Sep 17 00:00:00 2001 From: Fawad Ali Date: Mon, 9 Sep 2024 22:55:37 +0200 Subject: [PATCH] Be able to push to GitHub from publish action --- .github/workflows/publish.yml | 10 ++++++++++ package.json | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7d53db9..365c8ce 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -27,6 +27,9 @@ jobs: publish-package: runs-on: ubuntu-latest + permissions: + contents: write + steps: - uses: actions/checkout@v4 @@ -41,6 +44,13 @@ jobs: version: latest run_install: true + - name: Setup git + run: | + # git config user.name "${GITHUB_ACTOR}" + # git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" + git config user.name "Fawad Ali" + git config user.email "m.fawaadali98@gmail.com" + - name: Build package run: pnpm build diff --git a/package.json b/package.json index 84f99c1..9b2472f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "three-panorama-controls", - "version": "0.0.0", + "version": "1.0.0", "description": "Panorama controls for three.js.", "author": "Fawad Ali ", "license": "Apache-2.0",