Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

chore: Enable tag based deploy pipeline #18

Merged
merged 2 commits into from
Jan 7, 2020
Merged

chore: Enable tag based deploy pipeline #18

merged 2 commits into from
Jan 7, 2020

Conversation

nmarley
Copy link
Contributor

@nmarley nmarley commented Jan 6, 2020

This does several things:

  • Install dependencies via npm ci
  • Add check-package scripts to ensure same values for both name and version in package.json and package-lock.json
  • Set Travis config to only deploy on tags, and only for this repo (not forks, for example)
  • Update deploy script to check tags. The first check $PACKAGE_TAG" != "$TRAVIS_TAG" makes sure the tag version number pushed via git is equal to the version number in package.json. It should be "v1.2.3" for example, for the tag, and "1.2.3" in the package.json version.

It also checks if the string "dev" exists in the tag in order to not use "latest" for a dev tag. Then it publishes the module to npm with a tag of either latest or dev.

@Alex-Werner Alex-Werner changed the base branch from master to doc/fixes January 6, 2020 17:58
@nmarley
Copy link
Contributor Author

nmarley commented Jan 7, 2020

Please don't merge this as yet, I want to rebase this once #17 is merged. This should not go into that PR.

@nmarley nmarley changed the base branch from doc/fixes to master January 7, 2020 12:31
@nmarley
Copy link
Contributor Author

nmarley commented Jan 7, 2020

Rebased onto latest master after #17 was merged.

@nmarley nmarley merged commit d64c5a7 into master Jan 7, 2020
@nmarley nmarley deleted the travis-pipeline branch January 7, 2020 15:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants