Skip to content

Commit

Permalink
Merge pull request #3 from matewilk/npm-release-test
Browse files Browse the repository at this point in the history
Prepare for a release and npm publish
  • Loading branch information
matewilk authored Jul 10, 2023
2 parents fec9266 + d998dea commit ff7203a
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 7 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Test and Publish to NPM

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/[email protected]
with:
node-version: 16
- run: npm ci
- run: npm test

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/[email protected]
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
14 changes: 14 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
node_modules

_MACOSX/
.DS_Store
build
.idea

.web-extension-id
*.log

tsconfig.tsbuildinfo
tsconfig.build.tsbuildinfo

__test__
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
You can install Sidekick globally using npm:

```bash
npm install -g sidekick
npm install -g newrelic-sidekick
```

## Usage
Expand Down
7 changes: 5 additions & 2 deletions package-lock.json

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

16 changes: 12 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
{
"name": "code-export-js-newrelic-synthetics",
"version": "0.0.3-alpha.1",
"name": "newrelic-sidekick",
"version": "0.0.4-alpha.1",
"private": false,
"description": "Export Selenium IDE project contents to JavaScript New Relic Synthetics",
"repository": "https://github.com/SeleniumHQ/selenium-ide",
"repository": "https://github.com/@matewilk/newrelic-sidekick.git",
"keywords": [
"selenium",
"ide",
"export"
"export",
"newrelic",
"synthetics",
"browser",
"automation",
"testing",
"side",
"sidekick"
],
"license": "Apache-2.0",
"scripts": {
Expand All @@ -24,6 +31,7 @@
"bin": {
"sidekick": "./dist/bin.js"
},
"types": "./dist/index.d.ts",
"devDependencies": {
"@babel/preset-env": "^7.22.4",
"@seleniumhq/side-model": "^4.0.0-alpha.3",
Expand Down

0 comments on commit ff7203a

Please sign in to comment.