diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 7450d56..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,34 +0,0 @@ -version: 2.1 - -workflows: - node-tests: - jobs: - # The versions are copied from - # https://circleci.com/developer/images/image/cimg/node#image-tags - # End of Life (EOL): https://endoflife.date/nodejs - - unit-tests: - name: node16 # EOL 11 Sep 2023 - version: '16.18.1' - - unit-tests: - name: node18 # EOL 30 Apr 2025 - version: '18.17.1' - requires: - - node16 - - unit-tests: - name: node20 # EOL 30 Apr 2026 - version: '20.5.1' - requires: - - node18 -jobs: - unit-tests: - parameters: - version: - type: string - docker: - - image: cimg/node:<< parameters.version >> - steps: - - checkout - - run: node --version - - run: npm --version - - run: npm install - - run: npm test diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..b97f605 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,25 @@ +name: Publish + +on: + push: + branches: [main] + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: lts/iron + + - name: Install dependencies + run: npm install --frozen-lockfile + + - name: Publish + run: npm publish dist/ + env: + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/package.json b/package.json index 06b92e4..374c236 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "postmark-cli", + "name": "@carvertical/postmark-cli", "version": "1.6.19", "description": "A CLI tool for managing templates, sending emails, and fetching servers on Postmark.", "main": "./dist/index.js", @@ -70,7 +70,10 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/activecampaign/postmark-cli.git" + "url": "git+https://github.com/carVertical/postmark-cli.git" + }, + "publishConfig": { + "registry": "https://npm.pkg.github.com" }, "author": "", "license": "MIT",