Skip to content

v10.16.0

v10.16.0 #177

Workflow file for this run

name: Node.js Package
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
ref: main
- uses: actions/setup-node@v4
with:
node-version: 22
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 }}