Skip to content

Commit 6954d4e

Browse files
fix(ci): update GitHub action
Use semantic-release-action
1 parent efe412f commit 6954d4e

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

.github/workflows/ci.yaml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,14 @@ jobs:
3535
needs: test
3636
if: github.ref == 'refs/heads/master' && github.repository_owner == 'pollination'
3737
steps:
38-
- uses: actions/checkout@v2
39-
- name: set up Python
40-
uses: actions/setup-python@v2
38+
- name: Checkout Current Branch
39+
uses: actions/checkout@v3
4140
with:
42-
python-version: 3.12
43-
- name: set up node # we need node for for semantic release
44-
uses: actions/setup-node@v2.1.2
41+
persist-credentials: false
42+
- name: Set up Node
43+
uses: actions/setup-node@v4
4544
with:
46-
node-version: 14.2.0
45+
node-version: 20.8.1
4746
- name: install python dependencies
4847
run: |
4948
bash scripts/install-poetry.sh
@@ -53,17 +52,20 @@ jobs:
5352
- name: generate queenbee schemas
5453
run: poetry run python3 scripts/gen_schemas.py
5554
- name: run semantic release
56-
id: new_release
57-
run: |
58-
nextRelease="`npx semantic-release@^17.0.0 --dryRun | grep -oP 'Published release \K.*? ' || true`"
59-
npx semantic-release@^17.0.0
60-
echo "::set-output name=tag::$nextRelease"
55+
id: semantic
56+
uses: cycjimmy/semantic-release-action@v4
57+
with:
58+
semantic_version: 23.1.1
6159
env:
6260
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61+
GIT_AUTHOR_NAME: ladybugbot
62+
GIT_AUTHOR_EMAIL: ${{ secrets.POLLINATION_LADYBUGBOT_EMAIL }}
63+
GIT_COMMITTER_NAME: ladybugbot
64+
GIT_COMMITTER_EMAIL: ${{ secrets.POLLINATION_LADYBUGBOT_EMAIL }}
6365
PYPI_PASSWORD: ${{ secrets.POLLINATION_PYPI_PASSWORD }}
6466
PYPI_USERNAME: ${{ secrets.POLLINATION_PYPI_USERNAME }}
6567
outputs:
66-
tag: ${{ steps.new_release.outputs.tag }}
68+
tag: ${{ steps.semantic.outputs.new_release_version }}
6769

6870
docs:
6971
name: Generate docs

0 commit comments

Comments
 (0)