diff --git a/.github/workflows/bumpversion.yml b/.github/workflows/bumpversion.yml index 3bf6c61..80ee300 100644 --- a/.github/workflows/bumpversion.yml +++ b/.github/workflows/bumpversion.yml @@ -14,8 +14,7 @@ jobs: # ref: develop - name: fetch all branches run: | - git fetch --all - git checkout develop + - name: pull latest develop branch changes run: git pull origin develop @@ -26,10 +25,17 @@ jobs: git config --global user.name "Benedict Steven" git remote set-url origin https://x-access-token:${{ secrets.TOKEN }}@github.com/${{ github.repository }} - name: Build - run: npm install + run: | + git fetch --all + git checkout develop + npm install + - name: Build - run: npm run build + run: | + git fetch --all + git checkout develop + npm run build - name: bump version actions uses: bmsteven/bump-version@1.0.3 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 965ae36..64ed39f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,8 +13,6 @@ jobs: - name: Build run: npm install - - name: install packages - run: npm install -g axios @octokit/core @actions/github @actions/core - uses: ./ with: GITHUB_TOKEN: ${{secrets.TOKEN}} diff --git a/.gitignore b/.gitignore index e67876a..a56a7ef 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ node_modules - diff --git a/action.yml b/action.yml index c55e067..80b4f06 100644 --- a/action.yml +++ b/action.yml @@ -14,7 +14,7 @@ inputs: required: true runs: using: 'node16' - main: './src/actions.js' + main: './action/index.js' branding: icon: 'package' diff --git a/changelog.md b/changelog.md index e69de29..c9c3580 100644 --- a/changelog.md +++ b/changelog.md @@ -0,0 +1,14 @@ +# 1.0.1 +* fix typo +# 1.0.1 +* test bump version +# 1.0.1 +* test bump version +# 1.0.1 +* test bump version +# 1.0.1 +* add git pull before bumping version +# 1.0.1 +* test bump version +# 1.0.1 +* add changelog file diff --git a/package.json b/package.json index c3687be..af26f51 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,12 @@ { "name": "automate-pull-request", - "version": "1.0.0", + "version": "1.0.1", "description": "", "main": "index.js", "scripts": { "build": "rm -rf action && ncc build src/actions.js -o action", "start": "babel-node src/actions.js", - "deploy":"cd src && zip -r -D test.zip .", + "deploy": "cd src && zip -r -D test.zip .", "test": "echo \"Error: no test specified\" && exit 1" }, "repository": {