diff --git a/.github/workflows/publish-package.yaml b/.github/workflows/publish-package.yaml new file mode 100644 index 0000000..5586d92 --- /dev/null +++ b/.github/workflows/publish-package.yaml @@ -0,0 +1,24 @@ +name: Publish Package to npm +on: + push: + branches: + - master +jobs: + publish: + runs-on: ubuntu-latest + permissions: + contents: read + id-token: write + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: '14.x' + registry-url: 'https://registry.npmjs.org' + cache: 'npm' + - run: npm ci + - run: npm test + - name: npm publish + run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/pull-request-checks.yaml b/.github/workflows/pull-request-checks.yaml index a6e256a..e48fbb2 100644 --- a/.github/workflows/pull-request-checks.yaml +++ b/.github/workflows/pull-request-checks.yaml @@ -11,9 +11,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js 14.x - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: node-version: 14.x cache: 'npm' diff --git a/README.md b/README.md index 77255ce..2229f6e 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ We will gladly accept issues and PRs in this repo. In the repo where you manage Pipedream components, run: ```bash -npm install eslint-plugin-pipedream --save-dev +npm install @pipedream/eslint-plugin-pipedream --save-dev ``` Then add the Pipedream plugin to the `plugins` section of your [ESLint config file](https://eslint.org/docs/user-guide/configuring/): diff --git a/package-lock.json b/package-lock.json index 7364f9a..7d83312 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "eslint-plugin-pipedream", + "name": "@pipedream/eslint-plugin-pipedream", "version": "0.2.4", "lockfileVersion": 1, "requires": true, diff --git a/package.json b/package.json index 8d9ea71..5e33b04 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "eslint-plugin-pipedream", + "name": "@pipedream/eslint-plugin-pipedream", "version": "0.2.4", "description": "ESLint plugin for Pipedream components: https://pipedream.com/docs/components/api/", "main": "index.js",