Skip to content

Commit

Permalink
Merge pull request #181 from vimeo/package-publish-config
Browse files Browse the repository at this point in the history
Add publishConfig to package.json
  • Loading branch information
cmxiang authored Mar 22, 2023
2 parents df6f866 + 73bec1d commit 0ef66ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
name: Publish Package

on:
push:
branches:
- 'master'
tags:
- '*.*.*'
release:
types: [published]

jobs:
publish:
Expand All @@ -18,6 +15,6 @@ jobs:
# Setup .npmrc file to publish to npm
registry-url: 'https://registry.npmjs.org'
- run: npm i
- run: npm publish --access public
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_VIMEO_PUBLISH_TOKEN }}
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
"lib": "lib",
"test": "test"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/vimeo/vimeo.js.git"
Expand Down

0 comments on commit 0ef66ea

Please sign in to comment.