From 06d703327da6dbc18823c946464396028f142e10 Mon Sep 17 00:00:00 2001 From: Christophe Grandpierre Date: Tue, 18 Jun 2024 09:10:18 +0200 Subject: [PATCH] Try to create NPM release 0.1.7 --- .github/workflows/npm-publish.yml | 8 ++------ .npmignore | 4 ++++ CHANGELOG.md | 6 ++++++ package-lock.json | 4 ++-- package.json | 3 ++- 5 files changed, 16 insertions(+), 9 deletions(-) create mode 100644 .npmignore diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 3f43fbe..c482483 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -1,21 +1,17 @@ name: Publish Package to npmjs on: release: - types: [published] + types: [created] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - # Setup .npmrc file to publish to npm - uses: actions/setup-node@v4 with: node-version: "20.x" registry-url: "https://registry.npmjs.org" - run: npm ci - - run: npm run test:unit - - run: npm run prettier:check - - run: INTEGRATION_TEST_TIMEOUT=30000 npm run test:integration - - run: npm publish --access public + - run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..79d03d1 --- /dev/null +++ b/.npmignore @@ -0,0 +1,4 @@ +.idea +node_modules/ +*.tgz +test-results.xml diff --git a/CHANGELOG.md b/CHANGELOG.md index e3841f2..0ed1f92 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.1.7](https://github.com/Smartesting/gravity-cypress-plugin/compare/v0.1.6...v0.1.7) + +### Info + +- NPM packaging + ## [0.1.6](https://github.com/Smartesting/gravity-cypress-plugin/compare/v0.1.5...v0.1.6) ### Info diff --git a/package-lock.json b/package-lock.json index 9a8acbf..5ff14d0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@smartesting/gravity-cypress-plugin", - "version": "0.1.6", + "version": "0.1.7", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@smartesting/gravity-cypress-plugin", - "version": "0.1.6", + "version": "0.1.7", "dependencies": { "@smartesting/gravity-data-collector": "^7.0.0", "cross-fetch": "^4.0.0", diff --git a/package.json b/package.json index 5c784a9..3d6dd8d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@smartesting/gravity-cypress-plugin", - "version": "0.1.6", + "version": "0.1.7", "main": "dist/index.js", "types": "dist/index.d.ts", "private": false, @@ -19,6 +19,7 @@ "cypress:open": "cypress open", "cypress:run": "cypress run --e2e --browser=electron", "start:server": "ts-node test/utils/testServer.ts", + "prepublishOnly": "npm run build && npm run test:unit && npm run prettier:check && INTEGRATION_TEST_TIMEOUT=30000 npm run test:integration", "prettier:check": "prettier . --check", "prettier:write": "prettier . --write", "prepare": "husky"