Skip to content

Commit

Permalink
Merge pull request #267 from infosum/npm-publish-1.2.4
Browse files Browse the repository at this point in the history
fix npm actions
  • Loading branch information
stusmitharoo authored May 15, 2024
2 parents 7920ae7 + 144ded5 commit 7a2ea98
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 9 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ name: CI
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
- name: Setup .npmrc
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm publish --provenance --access public
- name: Authenticate with private NPM package
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
- name: Publish to npm
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to this project will be documented in this file.

## [1.2.4] - 2024-05-15

### Changed

- Fix npm publish action. Closes [264](https://github.com/infosum/cypress-tags/issues/264).

## [1.2.3] - 2024-05-15

### Changed
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": "cypress-tags",
"version": "1.2.3",
"version": "1.2.4",
"description": "Use custom tags to slice up Cypress test runs.",
"type": "commonjs",
"main": "dist/index.js",
Expand Down

0 comments on commit 7a2ea98

Please sign in to comment.