-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from paritytech/yuri/publish-to-npm
Publishing `@eng-automation/testing` to npm
- Loading branch information
Showing
14 changed files
with
210 additions
and
1,271 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
const { getConfiguration } = require("opstooling-js-style/src/eslint/configuration"); | ||
const { getConfiguration } = require("@eng-automation/js-style/src/eslint/configuration"); | ||
|
||
module.exports = getConfiguration({ typescript: { rootDir: __dirname } }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: NPM Release | ||
|
||
on: | ||
release: | ||
types: [released] | ||
|
||
jobs: | ||
publish: | ||
name: Build & Publish to NPM | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.x | ||
|
||
- name: Install | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: Build | ||
run: yarn build | ||
|
||
- name: Set version | ||
run: npm version --no-git-tag-version ${{github.event.release.tag_name}} | ||
|
||
- name: npm pack | ||
run: npm pack | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: package | ||
path: "eng-automation-testing-*.tgz" | ||
|
||
- uses: octokit/[email protected] | ||
with: | ||
route: POST /repos/paritytech/npm_publish_automation/actions/workflows/publish.yml/dispatches | ||
ref: main | ||
inputs: '${{ format(''{{ "repo": "{0}", "run_id": "{1}" }}'', github.repository, github.run_id) }}' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.NPM_PUBLISH_AUTOMATION_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
module.exports = require("opstooling-js-style/src/prettier/configuration") | ||
module.exports = require("@eng-automation/js-style/src/prettier/configuration") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
{ | ||
"name": "opstooling-testing", | ||
"version": "0.0.0", | ||
"description": "Test helpers and fixtures for opstooling projects", | ||
"repository": "[email protected]:paritytech/opstooling-testing.git", | ||
"name": "@eng-automation/testing", | ||
"version": "0.0.0-updated-via-gh-releases", | ||
"description": "Parity EngAutomation test helpers and fixtures", | ||
"author": "Parity <[email protected]> (https://parity.io)", | ||
"license": "Apache-2.0", | ||
"private": false, | ||
|
@@ -19,16 +18,17 @@ | |
"dist" | ||
], | ||
"dependencies": { | ||
"selfsigned": "^2.1.0", | ||
"@eng-automation/js": "^0.0.21", | ||
"@octokit/rest": "^19.0.7", | ||
"mockttp": "^3.6.2", | ||
"node-fetch": "^2.6.7", | ||
"opstooling-js": "https://github.com/paritytech/opstooling-js#v0.0.17" | ||
"selfsigned": "^2.1.0" | ||
}, | ||
"devDependencies": { | ||
"@eng-automation/js-style": "^2.0.0", | ||
"@octokit/webhooks-types": "^5.8.0", | ||
"@types/node-fetch": "^2.6.2", | ||
"@types/node": "^16", | ||
"opstooling-js-style": "https://github.com/paritytech/opstooling-js-style#c298d0f732d93712e4397fd53baa3317a3022c8c", | ||
"@types/node-fetch": "^2.6.2", | ||
"ts-patch": "^2.0.2", | ||
"typescript": "^4.6.2", | ||
"typescript-transform-paths": "^3.4.4" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.