diff --git a/.github/workflows/javascript-package-publish.yaml b/.github/workflows/javascript-package-publish.yaml new file mode 100644 index 0000000..bc33090 --- /dev/null +++ b/.github/workflows/javascript-package-publish.yaml @@ -0,0 +1,21 @@ +name: Javascript Package Publish +on: + push: + tags: + - "*" +jobs: + publish: + runs-on: ubuntu-latest + permissions: + packages: write + contents: read + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 12 + registry-url: https://npm.pkg.github.com/ + - run: npm install + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.ACTIONS_TOKEN}} diff --git a/package.json b/package.json index 424a07c..550d253 100644 --- a/package.json +++ b/package.json @@ -1,40 +1,43 @@ { - "name":"ytestrunner", - "author":"Krishnan Anantheswaran ", - "description":"Run YUI tests for node packages using npm test with support for saving test results, coverage and more. Supports YUITest as well as YUI3 style tests.", - "version":"0.1.2", - "repository":{ - "type":"git", - "url":"git://github.com/gotwarlost/ytestrunner.git" - }, - "bugs":{ - "url":"http://github.com/gotwarlost/ytestrunner/issues" - }, - "bin":{ - "ytestrunner":"lib/cli.js" - }, - "scripts":{ - "test":"test/run.js" - }, - "engines":{ - "node":">=0.4.12" - }, - "dependencies":{ - "mkdirp":"*", - "colors":"*", - "fileset":"*", - "nopt":"*", - "resolve":"*", - "async":"*" - }, - "devDependencies":{ - "rimraf":"*", - "nodeunit":"*" - }, - "licenses":[ + "name": "@chaordic/ytestrunner", + "author": "Krishnan Anantheswaran ", + "description": "Run YUI tests for node packages using npm test with support for saving test results, coverage and more. Supports YUITest as well as YUI3 style tests.", + "version": "0.1.4-rc.0", + "repository": { + "type": "git", + "url": "git://github.com/chaordic/ytestrunner.git" + }, + "publishConfig": { + "@chaordic:registry": "https://npm.pkg.github.com" + }, + "bugs": { + "url": "http://github.com/gotwarlost/ytestrunner/issues" + }, + "bin": { + "ytestrunner": "lib/cli.js" + }, + "scripts": { + "test": "test/run.js" + }, + "engines": { + "node": ">=0.4.12" + }, + "dependencies": { + "mkdirp": "*", + "colors": "*", + "fileset": "*", + "nopt": "*", + "resolve": "*", + "async": "*" + }, + "devDependencies": { + "rimraf": "*", + "nodeunit": "*" + }, + "licenses": [ { - "type":"MIT", - "url":"http://github.com/gotwarlost/ytestrunner/raw/master/LICENSE" + "type": "MIT", + "url": "http://github.com/gotwarlost/ytestrunner/raw/master/LICENSE" } ] }