Skip to content

Commit

Permalink
Merge pull request #81 from jacoscaz/use-next-tag-for-automated-publish
Browse files Browse the repository at this point in the history
Prevents automated publishing to NPM
  • Loading branch information
antonioru authored Nov 27, 2020
2 parents c0bc2b2 + b17a400 commit 4510b47
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: ubuntu-latest
steps:
- uses: gregoranders/[email protected]
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
Expand Down Expand Up @@ -45,12 +46,14 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Prepare distribution
if: "contains(steps.projectinfo.outputs.version, '-')"
run: cp -r ./@types ./dist/@types && cp package.json index.d.ts README.md LICENSE CHANGELOG.md CONTRIBUTING.md CODE_OF_CONDUCT.md ./dist

- name: Publish
if: "contains(steps.projectinfo.outputs.version, '-')"
run: |
npm pack
npm publish
npm publish --tag next
working-directory: ./dist
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
![CI/CD](https://github.com/antonioru/beautiful-react-diagrams/workflows/CI/CD/badge.svg)
![CI/CD](https://github.com/beautifulinteractions/beautiful-react-diagrams/workflows/CI/CD/badge.svg)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Coverage Status](https://coveralls.io/repos/github/antonioru/beautiful-react-diagrams/badge.svg?branch=master)](https://coveralls.io/github/antonioru/beautiful-react-diagrams?branch=master)
[![Coverage Status](https://coveralls.io/repos/github/beautifulinteractions/beautiful-react-diagrams/badge.svg?branch=master)](https://coveralls.io/github/antonioru/beautiful-react-diagrams?branch=master)
![npm](https://img.shields.io/npm/v/beautiful-react-diagrams)
![GitHub stars](https://img.shields.io/github/stars/antonioru/beautiful-react-diagrams?style=social)
![GitHub stars](https://img.shields.io/github/stars/beautifulinteractions/beautiful-react-diagrams?style=social)

<div align="center">
<p align="center">
Expand Down Expand Up @@ -70,6 +70,14 @@ To submit your custom pull request, please make sure your read our [CONTRIBUTING
4. make sure you've added the documentation of your changes.
5. if you've changed the signature of a component, please make sure you've updated the `index.d.ts` file.

## Versioning

This library follows the [semver](https://semver.org) versioning standard.
Pre-release commits on the `master` branch, including merge commits, lead
to automated publication to NPM under the `next` tag. Pre-release version
numbers must follow the `<major>.<minor>.<patch>-<tag>.<number>`, such as
`5.1.0-rc.0`.

### Credits

This library is provided and sponsored by:
Expand Down

0 comments on commit 4510b47

Please sign in to comment.