diff --git a/.changeset/wild-cougars-melt.md b/.changeset/wild-cougars-melt.md new file mode 100644 index 00000000..e1f84e21 --- /dev/null +++ b/.changeset/wild-cougars-melt.md @@ -0,0 +1,5 @@ +--- +"@valiantlynx/svelte-rich-text": patch +--- + +some stuff. not important to users. just action testing diff --git a/.github/workflows/changeset.yaml b/.github/workflows/changeset.yaml index 5e42cf28..5102ba08 100644 --- a/.github/workflows/changeset.yaml +++ b/.github/workflows/changeset.yaml @@ -10,49 +10,36 @@ on: workflow_dispatch: concurrency: ${{ github.workflow }}-${{ github.ref }} +env: + CI: true + PNPM_CACHE_FOLDER: .pnpm-store jobs: - release: - name: Release + version: + timeout-minutes: 15 runs-on: ubuntu-latest - permissions: - contents: read - id-token: write - outputs: - published: ${{ steps.changesets.outputs.published }} - publishedPackages: ${{ steps.changesets.outputs.publishedPackages }} steps: - - name: Checkout Repo + - name: checkout code repository uses: actions/checkout@v3 - - - uses: pnpm/action-setup@v2 with: - version: 8 - - - name: Setup Node.js and npm config + fetch-depth: 0 + - name: setup node.js uses: actions/setup-node@v3 with: - node-version: '21.x' - registry-url: 'https://registry.npmjs.org/' - scope: '@valiantlynx' - cache: "pnpm" - - - name: Install Dependencies - run: pnpm install --frozen-lockfile - - - name: Build - run: pnpm run build && pnpm run package - - - name: Configure .npmrc for Publishing - run: | - echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc - - - name: Create Release Pull Request or Publish to npm - id: changesets + node-version: 14 + - name: install pnpm + run: npm i pnpm@latest -g + - name: Setup npmrc + run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc + - name: setup pnpm config + run: pnpm config set store-dir $PNPM_CACHE_FOLDER + - name: install dependencies + run: pnpm install + - name: create and publish versions uses: changesets/action@v1 with: - # Ensure you have a script in your package.json named "release" that is configured for npm. - # This could simply be: "release": "npm publish --access public" or include the changeset publish command as needed. - publish: pnpm run release + version: pnpm ci:version + commit: "chore: update versions" + title: "chore: update versions" + publish: pnpm ci:publish env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/package.json b/package.json index 1577e125..00aba415 100644 --- a/package.json +++ b/package.json @@ -29,10 +29,11 @@ }, "scripts": { "dev": "vite --host", - "build": "vite build && pnpm run package", + "build": "vite build && yarn run package", "preview": "vite preview", "package": "svelte-kit sync && svelte-package && publint", "release": "pnpm run package && changeset publish", + "ci:publish": "pnpm publish -r", "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", "test": "vitest",