Skip to content

Commit

Permalink
0.11.2 (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunu authored Jul 23, 2019
1 parent d249c6c commit e5e0b09
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 8 deletions.
31 changes: 28 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,25 @@ jobs:
- workspace
- .npm
publish:
description: "Publish package aritfacts to a specified registry"
executor: npm-executor
resource_class: small
parameters:
registry:
default: registry.npmjs.org
type: string
token_var:
default: NPM_PUBLISH_TOKEN
type: string
steps:
- attach_workspace:
at: ~/
- run:
name: publish release package to npm registry
command: |
echo "//npm.pkg.github.com/:_authToken=${GITHUB_REGISTRY_ACCESS_TOKEN}" > .npmrc
npm publish
echo "@twyla-ai:registry=https://<< parameters.registry >>/" > .npmrc
echo "//<< parameters.registry >>/:_authToken=${<< parameters.token_var >>}" >> .npmrc
npm publish --access public
workflows:
ci-checks:
Expand All @@ -84,6 +93,9 @@ workflows:
tags:
only: /^v?([0-9].*\.[0-9].*\.[0-9].*)$/
- publish:
name: Publish to npmjs.org
registry: registry.npmjs.org
token_var: NPM_PUBLISH_TOKEN
context: Build
requires:
- test
Expand All @@ -92,4 +104,17 @@ workflows:
tags:
only: /^v?([0-9].*\.[0-9].*\.[0-9].*)$/
branches:
ignore: /.*/
ignore: /.*/
- publish:
name: Publish to GitHub Package Registry
registry: npm.pkg.github.com
token_var: GITHUB_REGISTRY_ACCESS_TOKEN
context: Build
requires:
- test
- build
filters:
tags:
only: /^v?([0-9].*\.[0-9].*\.[0-9].*)$/
branches:
ignore: /.*/
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
{
"name": "@twyla-ai/widget-core",
"version": "0.11.1",
"version": "0.11.2",
"description": "Twyla Widget Core",
"main": "dist/index.js",
"publishConfig": {
"registry":"https://npm.pkg.github.com/"
},
"scripts": {
"build": "npm run clean && npx webpack --mode production",
"clean": "npx rimraf dist",
Expand Down

0 comments on commit e5e0b09

Please sign in to comment.