diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fb810d3..6d51bbc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4.0.0 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - uses: pnpm/action-setup@v2 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..b6ad33d --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,22 @@ +name: Publish package +on: + release: + types: [published] +permissions: + id-token: write +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: "20.x" + registry-url: "https://registry.npmjs.org" + - uses: pnpm/action-setup@v2 + with: + version: latest + - run: pnpm i + - run: pnpm publish --provenance --no-git-checks + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 5f3aeca..19e6171 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,10 @@ "publishConfig": { "access": "public" }, + "repository": { + "type": "git", + "url": "https://github.com/ilteoood/re-flusso" + }, "scripts": { "format": "biome format ./src ./test ./examples", "format:fix": "pnpm run format --write",