Skip to content

v10.7.2

v10.7.2 #160

Workflow file for this run

name: Node.js Package
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
ref: main
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: "https://registry.npmjs.org"
- name: Configure Git
run: |
git config user.name github-actions
git config user.email github-actions@github.com
- name: Update versions
run: |
npm version ${{ github.event.release.tag_name }} -ws --allow-same-version
for module in packages/modules/*; do npm install testcontainers@${{ github.event.release.tag_name }} --save -w $module; done
sed -i -E "s/(sonar.projectVersion)=.+/\1=${{ github.event.release.tag_name }}/" sonar-project.properties
- name: Build packages
run: |
npm ci --omit=optional
npm run build -ws
- name: Git commit and push
run: |
git commit -am "${{ github.event.release.tag_name }}"
git push
- name: Publish packages to NPM
run: npm publish -ws
env:
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}