Skip to content

Commit

Permalink
Add publish npm job
Browse files Browse the repository at this point in the history
  • Loading branch information
Maria Kravtsova committed Jun 6, 2022
1 parent a5ad9af commit a30b8d9
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
version: 2.1

orbs:
node: circleci/[email protected]

jobs:
publish-package:
docker:
- image: 'cimg/base:2020.01'
steps:
- attach_workspace:
at: .
- checkout
- node/install:
node-version: 14.16.1
- run: npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN
- run: npm install
- run: npm version from-git --no-git-tag-version
- run: npm publish

workflows:
version: 2
build-publish:
jobs:
- publish-package:
context: wp-exoskeleton
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/

0 comments on commit a30b8d9

Please sign in to comment.