Skip to content

Commit

Permalink
revamp npm publish & fix CHANGELOG items
Browse files Browse the repository at this point in the history
  • Loading branch information
cgrandpierre committed Jun 17, 2024
1 parent 4727d42 commit 3333b5c
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 32 deletions.
31 changes: 8 additions & 23 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,21 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages

name: Node.js Package

name: Publish Package to npmjs
on:
release:
types: [created]

types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
node-version: 20
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 run build

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.SMARTESTING_NPM_TOKEN}}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
18 changes: 12 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,37 +5,43 @@ 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.5](https://github.com/Smartesting/gravity-data-collector/compare/v0.1.4...v0.1.5)
## [0.1.6](https://github.com/Smartesting/gravity-cypress-plugin/compare/v0.1.5...v0.1.6)

### Info

- NPM packaging

## [0.1.5](https://github.com/Smartesting/gravity-cypress-plugin/compare/v0.1.4...v0.1.5)

### Info

- convenient version update

## [0.1.4](https://github.com/Smartesting/gravity-data-collector/compare/v0.1.3...v0.1.4)
## [0.1.4](https://github.com/Smartesting/gravity-cypress-plugin/compare/v0.1.3...v0.1.4)

### Fixed

- fix `/dist` presence in NPM package ?

## [0.1.3](https://github.com/Smartesting/gravity-data-collector/compare/v0.1.2...v0.1.3)
## [0.1.3](https://github.com/Smartesting/gravity-cypress-plugin/compare/v0.1.2...v0.1.3)

### Info

- use Gravity data collector allowing to pass `window` to video recorder

## [0.1.2](https://github.com/Smartesting/gravity-data-collector/compare/v0.1.1...v0.1.2)
## [0.1.2](https://github.com/Smartesting/gravity-cypress-plugin/compare/v0.1.1...v0.1.2)

### Fixed

- Deployment workflow to npmjs: mark project as public

## [0.1.1](https://github.com/Smartesting/gravity-data-collector/compare/v0.1.0...v0.1.1)
## [0.1.1](https://github.com/Smartesting/gravity-cypress-plugin/compare/v0.1.0...v0.1.1)

### Fixed

- Deployment workflow to npmjs

## [0.1.0](https://github.com/Smartesting/gravity-data-collector/compare/bae154a25f8e8fd5c3f5bb893c81a52c6c7b3c18...v0.1.0)
## [0.1.0](https://github.com/Smartesting/gravity-cypress-plugin/compare/bae154a25f8e8fd5c3f5bb893c81a52c6c7b3c18...v0.1.0)

### Added

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@smartesting/gravity-cypress-plugin",
"version": "0.1.5",
"version": "0.1.6",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"private": false,
Expand Down

0 comments on commit 3333b5c

Please sign in to comment.