Use latest pins version in meldemichel to fix pins issue in melmi #300
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish packages with updated changelog to npmjs.org | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
outputs: | |
matrix: ${{ steps.matrix.outputs.TAGS }} | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ssh-key: ${{ secrets.MAIN_BOT_KEY_PRIVATE }} | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18.13.0 | |
registry-url: https://registry.npmjs.org/ | |
- run: npm ci | |
- run: | | |
RETURN_TAGS=$(node ./scripts/publishPackages) | |
echo "TAGS=$RETURN_TAGS" >> $GITHUB_ENV | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- uses: EndBug/add-and-commit@v9 | |
with: | |
author_name: Dataport Geo Bot | |
author_email: [email protected] | |
- run: | | |
for TAG in ${{ env.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 | |
- run: node ./scripts/createRelease ${{ env.TAGS }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |