Skip to content

Commit ef3fdf5

Browse files
committed
πŸ› set up node action
1 parent 2205137 commit ef3fdf5

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

β€Ž.github/workflows/receive-votes.ymlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
fetch-depth: 0
6262
ref: ${{ inputs.branch }}
6363

64-
- uses: commonhaus/vote-record-actions/.github/actions/count-votes@main
64+
- uses: commonhaus/vote-record-actions/actions/count-votes@main
6565
id: count-votes
6666
with:
6767
commit-message: ${{ inputs.commit-message }}

β€Ž.github/workflows/release-action.ymlβ€Ž

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ jobs:
6868
GITHUB_TOKEN: ${{ github.token }}
6969
run: |
7070
VERSION=$(npm version ${INPUT_VERSION} -m "πŸ”– %s" --tag-version-prefix="")
71+
72+
# Update references from main to the new release branch
73+
sed -i "s|VOTE_ACTIONS_RELEASE: snapshot|VOTE_ACTIONS_RELEASE: '$VERSION'|" actions/count-votes/action.yml
74+
sed -i "s|count-votes@main|count-votes@'$VERSION'|" .github/workflows/receive-votes.yml
75+
7176
git push && git push --tags
7277
7378
echo ${VERSION}
@@ -76,11 +81,7 @@ jobs:
7681
# Create a new branch for the release
7782
git checkout -b ${BRANCH}
7883
79-
# Update references from main to the new release branch
80-
sed -i "s|VOTE_ACTIONS_RELEASE: snapshot|VOTE_ACTIONS_RELEASE: '$VERSION'|" .github/actions/count-votes/action.yml
81-
sed -i "s|count-votes@main|count-votes@'$VERSION'|" .github/workflows/receive-votes.yml
82-
83-
git add .github
84+
git add .github actions
8485
git commit -m "πŸ“ Update action references for ${VERSION}"
8586
git push --set-upstream origin ${BRANCH}
8687
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ runs:
4747
git config user.name "${{ inputs.bot-name }}"
4848
git config user.email "${{ inputs.bot-email }}"
4949
50+
- name: Use Node.js
51+
uses: actions/setup-node@v4
52+
with:
53+
node-version: '20'
54+
5055
- name: Download Compiled JS from Release
5156
shell: bash
5257
env:

0 commit comments

Comments
Β (0)