diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..5917297 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,2 @@ +# These are supported funding model platforms +github: [jwetzell] diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..db9ba41 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: 'npm' + directory: '/' + schedule: + interval: 'weekly' diff --git a/.github/workflows/check-acn-build.yml b/.github/workflows/check-acn-build.yml new file mode 100644 index 0000000..ffb0f0d --- /dev/null +++ b/.github/workflows/check-acn-build.yml @@ -0,0 +1,25 @@ +name: Check @jwetzell/acn builds +on: + pull_request: + branches: + - main + paths: + - 'packages/acn/**' +jobs: + build-webui: + runs-on: ubuntu-latest + steps: + - name: Check out repository + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + + - name: Set up Node.js + uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 + with: + node-version-file: '.nvmrc' + cache: 'npm' + cache-dependency-path: 'package-lock.json' + + - name: Install Node.js dependencies + run: npm ci --workspace @jwetzell/acn + + - run: npm run build --workspace @jwetzell/acn diff --git a/.github/workflows/publish-acn-npm.yml b/.github/workflows/publish-acn-npm.yml new file mode 100644 index 0000000..283120e --- /dev/null +++ b/.github/workflows/publish-acn-npm.yml @@ -0,0 +1,26 @@ +name: Publish @jwetzell/acn to npmjs +on: + push: + tags: + - 'acn/*' +jobs: + publish-lib: + permissions: + id-token: write + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + - uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 + with: + node-version-file: '.nvmrc' + registry-url: 'https://registry.npmjs.org' + cache: 'npm' + cache-dependency-path: 'package-lock.json' + + - name: Install Node.js dependencies + run: npm ci --workspace @jwetzell/acn + + - name: Publish to NPM + run: npm publish --provenance --access=public --workspace @jwetzell/acn + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/run-acn-tests.yml b/.github/workflows/run-acn-tests.yml new file mode 100644 index 0000000..cdc8100 --- /dev/null +++ b/.github/workflows/run-acn-tests.yml @@ -0,0 +1,25 @@ +name: Run @jwetzell/acn tests +on: + pull_request: + branches: + - main + paths: + - 'packages/acn/**' +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Check out repository + uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 + + - name: Set up Node.js + uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 + with: + node-version-file: '.nvmrc' + cache: 'npm' + cache-dependency-path: './package-lock.json' + + - name: Install Node.js dependencies + run: npm ci --workspace @jwetzell/acn + + - run: npm run test --workspace @jwetzell/acn