From 1aecf4b167fa016e59b41cb5f7ea59aba85ec874 Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Fri, 15 Mar 2024 12:27:42 -0700 Subject: [PATCH] Release v1.1.2 (#11) - ci: update publish script to call setup --- .github/workflows/publish.yml | 51 ++++++++++++++++++++++++++++++++--- CHANGELOG.md | 6 +++++ package.json | 2 +- 3 files changed, 55 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e81c15f..3fe2686 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -11,6 +11,51 @@ env: CI: true jobs: - publish: - uses: haraka/.github/.github/workflows/publish.yml@master - secrets: inherit + build: + runs-on: ubuntu-latest + services: + redis: + image: redis + ports: + - 6379:6379 + steps: + - uses: actions/setup-node@v4 + - uses: actions/checkout@v4 + - run: npm install + - run: sudo ./test/fixtures/linux/setup.sh + - run: npm test + + publish-npm: + needs: [ build ] + runs-on: ubuntu-latest + environment: npm + steps: + - uses: actions/setup-node@v4 + with: + registry-url: https://registry.npmjs.org/ + - uses: actions/checkout@v4 + - name: publish to NPM + run: npm publish --access=public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} + + publish-gpr: + needs: [ build ] + runs-on: ubuntu-latest + environment: ghpm + permissions: + contents: read + packages: write + steps: + - uses: actions/checkout@v4 + with: + submodules: true + - uses: actions/setup-node@v4 + with: + registry-url: https://npm.pkg.github.com/ + scope: "@haraka" + - name: rename package with @haraka scope + run: node .release/npm/prepend-scope.cjs @haraka + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index cdcb435..4bf5d52 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ ### Unreleased + +### [1.1.2] - 2024-03-15 + +- ci: customized publish script + #### 1.1.1 - 2024-03-15 - config: comment out default server entries, fixes #9 @@ -38,3 +43,4 @@ - include all ops in config [1.1.1]: https://github.com/haraka/haraka-plugin-ldap/releases/tag/1.1.1 +[1.1.2]: https://github.com/haraka/haraka-plugin-ldap/releases/tag/1.1.2 diff --git a/package.json b/package.json index 8a9e9fb..895f9a3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "haraka-plugin-ldap", - "version": "1.1.1", + "version": "1.1.2", "description": "Haraka plugin for LDAP", "main": "index.js", "directories": {},