Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Conversation

@tbarlow12
Copy link
Contributor

@tbarlow12 tbarlow12 commented Aug 2, 2019

Pipelines for release and pre-release on merges to master and dev respectively. Dev branch will release a beta to NPM and Master will release a patch to NPM

Pipelines not set up yet - still need approval from serverless org to run Azure DevOps on the repo

Resolves [AB#588]

@coveralls
Copy link

coveralls commented Aug 2, 2019

Coverage Status

Coverage decreased (-0.6%) to 83.776% when pulling adf67f6 on tabarlow/release-azdo into b9bac62 on dev.

@tbarlow12 tbarlow12 force-pushed the tabarlow/release-azdo branch from 42c660c to b56cf53 Compare August 2, 2019 22:24
Copy link
Contributor

@wbreza wbreza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tbarlow12 tbarlow12 force-pushed the tabarlow/release-azdo branch from 3b8e6b1 to da75799 Compare August 6, 2019 16:33
Copy link
Contributor

@PIC123 PIC123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!


- task: Bash@3
name: BumpNpmVersion
displayName: Bump NPM Prerelease Version
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: would we want this to be just Release version?

# GITHUB_ACCESS_TOKEN

PACKAGE_NAME=$1
NPM_RELEASE_TYPE=${2-"prerelease"}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this mean we will just have prerelease release types?

filePath: ./scripts/version.sh
arguments: 'serverless/serverless-azure-functions'
env:
NPM_TOKEN: $(NPM_TOKEN)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would recommend creating Variable Groups in AzDO and referencing them here, so that you don't have to add the variables after pipeline creation

filePath: ./scripts/publish.sh
arguments: 'prerelease'
env:
NPM_TOKEN: $(NPM_TOKEN)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

filePath: ./scripts/version.sh
arguments: 'serverless/serverless-azure-functions'
env:
NPM_TOKEN: $(NPM_TOKEN)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use variable group

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you need GITHUB_ACCESS_TOKEN here, not NPM_TOKEN

git checkout ${SOURCE_BRANCH_NAME}
echo Checked out branch: ${SOURCE_BRANCH_NAME}

NPM_VERSION=`npm version ${NPM_RELEASE_TYPE} -m "Update version ${NPM_RELEASE_TYPE} ***NO_CI***"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would change the commit msg to "release: Bump ${NPM_RELEASE_TYPE} to %s NO_CI"

@tbarlow12 tbarlow12 merged commit 7a8a948 into dev Aug 16, 2019
@tbarlow12 tbarlow12 deleted the tabarlow/release-azdo branch August 16, 2019 14:38
tbarlow12 added a commit that referenced this pull request Sep 13, 2019
Pipelines for release and pre-release on merges to master and dev respectively. Dev branch will release a beta to NPM and Master will release a patch to NPM

Resolves [AB#588]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants