diff --git a/.github/workflows/publish-dry-run.yaml b/.github/workflows/publish-dry-run.yaml new file mode 100644 index 0000000..3a4da4b --- /dev/null +++ b/.github/workflows/publish-dry-run.yaml @@ -0,0 +1,32 @@ +name: Publish Package Dry Run +on: + pull_request: + workflow_dispatch: + +jobs: + publish-npm: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Install pnpm + uses: pnpm/action-setup@v2.4.0 + with: + version: latest + - name: Install nodejs ${{ matrix.node-version }} + uses: actions/setup-node@v3.8.1 + with: + node-version: ${{ matrix.node-version }} + registry-url: https://registry.npmjs.org/ + cache: "pnpm" + - name: Install dependencies + run: pnpm install --frozen-lockfile + - name: Lint library + run: pnpm -r lint + - name: Build library + if: ${{ success() }} + run: pnpm -r build + - name: Publish package + run: pnpm -r publish --access public --no-git-checks --dry-run diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 03e2dce..5c69943 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -9,21 +9,21 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Install pnpm - uses: pnpm/action-setup@v2.2.4 + uses: pnpm/action-setup@v2.4.0 with: version: latest - name: Install nodejs ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v3.8.1 with: node-version: ${{ matrix.node-version }} registry-url: https://registry.npmjs.org/ cache: "pnpm" - name: Install dependencies - run: pnpm install + run: pnpm install --frozen-lockfile - name: Lint library run: pnpm -r lint - name: Build library @@ -36,4 +36,4 @@ jobs: - name: Create release uses: softprops/action-gh-release@v1 with: - token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/pull-request.yaml b/.github/workflows/pull-request.yaml index f0348dc..35bb41d 100644 --- a/.github/workflows/pull-request.yaml +++ b/.github/workflows/pull-request.yaml @@ -8,21 +8,21 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Install pnpm - uses: pnpm/action-setup@v2.2.4 + uses: pnpm/action-setup@v2.4.0 with: version: latest - name: Install nodejs ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v3.8.1 with: node-version: ${{ matrix.node-version }} registry-url: https://registry.npmjs.org/ cache: "pnpm" - name: Install dependencies - run: pnpm install + run: pnpm install --frozen-lockfile - name: Lint changes run: pnpm -r lint @@ -43,16 +43,16 @@ jobs: with: fetch-depth: 0 - name: Install pnpm - uses: pnpm/action-setup@v2.2.4 + uses: pnpm/action-setup@v2.4.0 with: version: latest - name: Install nodejs ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v3.8.1 with: node-version: ${{ matrix.node-version }} registry-url: https://registry.npmjs.org/ cache: "pnpm" - name: Install dependencies - run: pnpm install + run: pnpm install --frozen-lockfile - name: Build changes - run: pnpm -r build \ No newline at end of file + run: pnpm -r build diff --git a/.npmignore b/.npmignore index 50e2ad2..7c8062b 100644 --- a/.npmignore +++ b/.npmignore @@ -5,6 +5,7 @@ node_modules/ .eslintignore .eslintrc vite.config.js +vite.config.ts tsconfig.json # local env files