diff --git a/.github/workflows/lint-fetchindex.yml b/.github/workflows/lint-fetchindex.yml new file mode 100644 index 0000000..561dacd --- /dev/null +++ b/.github/workflows/lint-fetchindex.yml @@ -0,0 +1,27 @@ +name: "Test Suite: Linter (@nodevu/fetchindex)" + +on: + push: + pull_request: + paths: + - 'fetchindex/**' + branches: + - main + workflow_dispatch: + workflow_call: + +jobs: + tests: + if: github.repository == 'cutenode/nodevu' + runs-on: ubuntu-latest + steps: + - name: Checkout the repository + uses: actions/checkout@v4 + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: current + - name: Run npm install -w fetchindex + run: npm install -w fetchindex + - name: Run npm run lint -w fetchindex + run: npm run lint -w fetchindex diff --git a/.github/workflows/publish-newest copy.yml b/.github/workflows/publish-newest copy.yml new file mode 100644 index 0000000..725b3ed --- /dev/null +++ b/.github/workflows/publish-newest copy.yml @@ -0,0 +1,22 @@ +name: Publish @nodevu/fetchindex to npm +on: + workflow_dispatch: +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: read + id-token: write + steps: + - uses: actions/checkout@v4 + # Setup .npmrc file to publish to npm + - uses: actions/setup-node@v4 + with: + node-version: 'latest' + registry-url: 'https://registry.npmjs.org' + - run: npm install -w fetchindex + - run: npm run lint -w fetchindex + - run: npm run coverage -w fetchindex + - run: npm publish --provenance --access public -w fetchindex + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}