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 c1565b6 commit 9e04426
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/publish-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,19 @@ jobs:
node-version: 18.13.0
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: echo TAGS=[$(node ./scripts/publishPackages)] >> $GITHUB_OUTPUT
- run: TAGS=$(node ./scripts/publishPackages)
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: echo "$(TAGS)"
- 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: |
git config user.name "Dataport Geo Bot"
git config user.email "[email protected]"
git tag $matrix.tagname
git push origin $matrix.tagname
for TAG in $(TAGS)
do
git config user.name "Dataport Geo Bot"
git config user.email "[email protected]"
git tag $(TAG)
git push origin $(TAG)
echo "Released and tagged $(TAG)."
done
2 changes: 1 addition & 1 deletion scripts/publishPackages.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ for (const path of packages) {
}
}

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

0 comments on commit 9e04426

Please sign in to comment.