Skip to content

Commit

Permalink
workflow: test
Browse files Browse the repository at this point in the history
  • Loading branch information
warm-coolguy committed Feb 2, 2024
1 parent ff68fce commit 4ffe0cd
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/publish-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.matrix.outputs.TAGS }}
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -20,14 +22,20 @@ jobs:
- run: TAGS=$(node ./scripts/publishPackages)
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: echo "TAGS=[$(TAGS)]" >> $GITHUB_OUTPUT
- uses: EndBug/add-and-commit@v9
with:
author_name: Dataport Geo Bot
author_email: [email protected]
tag:
needs: [ publish ]
runs-on: ubuntu-latest
strategy:
matrix:
tagname: ${{fromJSON(needs.publish.outputs.matrix)}}
steps:
- run: |
for TAG_NAME in $TAGS; do
git config user.name "Dataport Geo Bot"
git config user.email "[email protected]"
git tag $TAG_NAME
git push origin $TAG_NAME
done
git config user.name "Dataport Geo Bot"
git config user.email "[email protected]"
git tag $matrix.tagname
git push origin $matrix.tagname
2 changes: 1 addition & 1 deletion packages/lib/createTestMountParameters/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CHANGELOG

## 1.3.0-mock-release-for-testing-pipeline.1
## 1.3.0-mock-release-for-testing-pipeline.2

## 1.2.0

Expand Down
2 changes: 1 addition & 1 deletion scripts/publishPackages.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ for (const path of packages) {
}
}

process.stdout.write(`[${tags.join(' ')}]`)
process.stdout.write(`"${tags.join('" "')}"`)

0 comments on commit 4ffe0cd

Please sign in to comment.