From f61fc3456adfbf4190a0a2574671de1d8bedabcf Mon Sep 17 00:00:00 2001 From: lucas Date: Tue, 5 Jul 2022 17:55:56 -0300 Subject: [PATCH 1/4] feat: github actions package publish workflow --- .../workflows/javascript-package-publish.yaml | 21 +++++++++++++++++++ package.json | 7 +++++-- 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/javascript-package-publish.yaml diff --git a/.github/workflows/javascript-package-publish.yaml b/.github/workflows/javascript-package-publish.yaml new file mode 100644 index 0000000..f748eae --- /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 ci + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/package.json b/package.json index 424a07c..2bd59fe 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,14 @@ { - "name":"ytestrunner", + "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.2", "repository":{ "type":"git", - "url":"git://github.com/gotwarlost/ytestrunner.git" + "url":"git://github.com/chaordic/ytestrunner.git" + }, + "publishConfig": { + "@chaordic:registry": "https://npm.pkg.github.com" }, "bugs":{ "url":"http://github.com/gotwarlost/ytestrunner/issues" From 9558f23bc57762697e3ad713ac3d8b04959fc435 Mon Sep 17 00:00:00 2001 From: lucas Date: Tue, 5 Jul 2022 17:58:55 -0300 Subject: [PATCH 2/4] 0.1.3-rc.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2bd59fe..22b8188 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "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.2", + "version":"0.1.3-rc.0", "repository":{ "type":"git", "url":"git://github.com/chaordic/ytestrunner.git" From 5ef376e5ce4f8443a826d17850eeb5b8794ea8f4 Mon Sep 17 00:00:00 2001 From: lucas Date: Wed, 13 Jul 2022 14:01:22 -0300 Subject: [PATCH 3/4] change secret token name --- .github/workflows/javascript-package-publish.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/javascript-package-publish.yaml b/.github/workflows/javascript-package-publish.yaml index f748eae..bc33090 100644 --- a/.github/workflows/javascript-package-publish.yaml +++ b/.github/workflows/javascript-package-publish.yaml @@ -15,7 +15,7 @@ jobs: with: node-version: 12 registry-url: https://npm.pkg.github.com/ - - run: npm ci + - run: npm install - run: npm publish env: - NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} + NODE_AUTH_TOKEN: ${{secrets.ACTIONS_TOKEN}} From 6aaca300a52f9f77c8260b69b5d85e683fee1fe8 Mon Sep 17 00:00:00 2001 From: lucas Date: Wed, 13 Jul 2022 14:01:31 -0300 Subject: [PATCH 4/4] 0.1.4-rc.0 --- package.json | 56 ++++++++++++++++++++++++++-------------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/package.json b/package.json index 22b8188..550d253 100644 --- a/package.json +++ b/package.json @@ -1,43 +1,43 @@ { - "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.3-rc.0", - "repository":{ - "type":"git", - "url":"git://github.com/chaordic/ytestrunner.git" + "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" + "bugs": { + "url": "http://github.com/gotwarlost/ytestrunner/issues" }, - "bin":{ - "ytestrunner":"lib/cli.js" + "bin": { + "ytestrunner": "lib/cli.js" }, - "scripts":{ - "test":"test/run.js" + "scripts": { + "test": "test/run.js" }, - "engines":{ - "node":">=0.4.12" + "engines": { + "node": ">=0.4.12" }, - "dependencies":{ - "mkdirp":"*", - "colors":"*", - "fileset":"*", - "nopt":"*", - "resolve":"*", - "async":"*" + "dependencies": { + "mkdirp": "*", + "colors": "*", + "fileset": "*", + "nopt": "*", + "resolve": "*", + "async": "*" }, - "devDependencies":{ - "rimraf":"*", - "nodeunit":"*" + "devDependencies": { + "rimraf": "*", + "nodeunit": "*" }, - "licenses":[ + "licenses": [ { - "type":"MIT", - "url":"http://github.com/gotwarlost/ytestrunner/raw/master/LICENSE" + "type": "MIT", + "url": "http://github.com/gotwarlost/ytestrunner/raw/master/LICENSE" } ] }