Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
Publish to npmjs on git tag
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kus committed Apr 26, 2022
1 parent 0adc1c1 commit b7167d5
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,26 @@ jobs:
- name: Git Checkout
uses: actions/checkout@master

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm install

- name: Bootstrap lerna
run: npm run bootstrap

- name: Build packages
run: npx lerna run build

- name: Setup npm
run: npm set "//npmjs.com/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}"

- name: Publish to npmjs
run: npx lerna publish from-package --yes --registry https://npmjs.com

- name: Build github release
uses: "marvinpinto/action-automatic-releases@latest"
with:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Setup npm
run: npm set "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}"

- name: Install dependencies
run: npm install

Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/typedoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Setup npm
run: npm set "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}"

- name: Install dependencies
run: npm install

Expand Down
2 changes: 0 additions & 2 deletions .npmrc

This file was deleted.

0 comments on commit b7167d5

Please sign in to comment.