diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..15ade06 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +name: CI +on: + pull_request: + branches: [main] +permissions: + contents: read + packages: read +jobs: + ci: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + registry-url: https://npm.pkg.github.com + scope: "@logfoxai" + cache: 'npm' + - name: Set up npm token + run: | + npm config set //npm.pkg.github.com/:_authToken "$NPM_TOKEN" + env: + NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Install deps + run: npm ci + - name: Build + run: npm run build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 185672e..eab0925 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,7 @@ jobs: with: node-version: 20 registry-url: https://npm.pkg.github.com - scope: "@logspacehq" + scope: "@logfoxai" - run: npm ci - run: npm run build - run: npx autorel@^2