From 69cd8dbbe8f364f4d39fea9731d30a7abc2651bd Mon Sep 17 00:00:00 2001 From: Neil Dobson Date: Tue, 9 Apr 2024 18:33:38 +1000 Subject: [PATCH] Update CI --- .github/workflows/actionstep-auth-ci.yml | 35 ++++++++++++++++++++++++ .github/workflows/actionstep-publish.yml | 3 ++ 2 files changed, 38 insertions(+) create mode 100644 .github/workflows/actionstep-auth-ci.yml diff --git a/.github/workflows/actionstep-auth-ci.yml b/.github/workflows/actionstep-auth-ci.yml new file mode 100644 index 0000000..55de45d --- /dev/null +++ b/.github/workflows/actionstep-auth-ci.yml @@ -0,0 +1,35 @@ +name: ActionStep Auth CI + +on: + push: + branches: ["**"] + paths: "monorepo/actionstep-auth/**" + pull_request: + branches: [main] + paths: "monorepo/actionstep-auth/**" + +defaults: + run: + working-directory: ./monorepo + shell: bash + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [20.x] + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Install dependencies + run: npm install + + - run: npm run build + - run: npm test diff --git a/.github/workflows/actionstep-publish.yml b/.github/workflows/actionstep-publish.yml index 2ceef7a..96c1a71 100644 --- a/.github/workflows/actionstep-publish.yml +++ b/.github/workflows/actionstep-publish.yml @@ -24,6 +24,9 @@ jobs: - run: npm publish -w actionstep env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + - run: npm publish -w actionstep-auth + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - run: npm publish -w actionstep-auth-function env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}