Skip to content

Commit

Permalink
Attempt at auto versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
joephela committed Jan 17, 2024
1 parent 7dcc7e1 commit e3f8131
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
1 change: 0 additions & 1 deletion .buildkite/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ TAG_VERSION=$(buildkite-agent meta-data get "tag-version" --default "0.0.0-alpha
TAG_VERSION=${TAG_VERSION/v/}

# Publish the package
npm version ${TAG_VERSION}
npm publish --tag ${TAG_VERSION}

# Annotate the build with the types version
Expand Down
16 changes: 16 additions & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,19 @@ steps:
env:
NPM_TAG: latest
NODE_AUTH_TOKEN: ACQUIA_JFROG_TOKEN

- label: 'Auto version'
branches: 'master'
command:
- TAG_VERSION=$(buildkite-agent meta-data get "tag-version" --default "0.0.0-alpha-$(date +%Y%m%d%H%M%S)")
- TAG_VERSION=${TAG_VERSION/v/}
- sed 's/"version": "*"/"version": "${TAG_VERSION}"/g' package.json
agents:
queue: builder
plugins:
<<: *docker
thedyrt/git-commit#v0.3.0:
message: Auto version
user:
name: Widen Developers
email: [email protected]
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@widen/react-modal",
"version": "3.16.2",
"version": "1.0.0",
"description": "Accessible modal dialog component for React.JS",
"main": "./lib/index.js",
"module": "./lib/index.js",
Expand Down

0 comments on commit e3f8131

Please sign in to comment.