From bb3e7b0e7bcf1fec053caa205c47d9baff758eef Mon Sep 17 00:00:00 2001 From: Luke Seelenbinder Date: Tue, 27 Jun 2023 13:03:54 +0200 Subject: [PATCH] Add workflow. --- .github/workflows/publish.yml | 30 ++++++++++++++++++++++++++++++ .stylelintrc | 2 +- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..79ca413 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,30 @@ +name: Publish NPM Package + +on: + release: + types: [published] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: '18' + registry-url: 'https://registry.npmjs.org' + + - name: Install dependencies + run: npm ci + + - name: Build + run: npm run build + + - name: Publish + run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file diff --git a/.stylelintrc b/.stylelintrc index bdcfc0d..fc8862c 100644 --- a/.stylelintrc +++ b/.stylelintrc @@ -15,7 +15,7 @@ "prettier/prettier": true, "function-parentheses-space-inside": null, "no-descending-specificity": null, - "max-nesting-depth": 2, + "max-nesting-depth": 3, "selector-max-id": 1 } }