Skip to content

docker-watch v1.0.3 - cli patch #12

docker-watch v1.0.3 - cli patch

docker-watch v1.0.3 - cli patch #12

Workflow file for this run

name: Publish CLI on NPM
on:
release:
types: [published]
env:
HUSKY: 0
jobs:
publish-on-npm:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: '22'
- name: Setup Yarn
run: |
corepack enable
yarn set version 1.22.22
- name: Install dependencies
run: yarn install && npm i -g npm@latest
- name: Build the packages
run: |
yarn workspace @docker-watch/core build
yarn workspace @docker-watch/cli build
- name: Authenticate with Registry
run: |
yarn logout
echo "registry=https://registry.npmjs.org/" >> .npmrc
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
npm whoami
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish updated packages
run: |
npx lerna publish from-package --yes --no-private
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}