Skip to content

Commit

Permalink
Merge pull request #63 from valiantlynx:working
Browse files Browse the repository at this point in the history
always has to be yarn
  • Loading branch information
valiantlynx authored Apr 8, 2024
2 parents 72044ad + 0135d76 commit dabc6a6
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 37 deletions.
5 changes: 5 additions & 0 deletions .changeset/wild-cougars-melt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@valiantlynx/svelte-rich-text": patch
---

some stuff. not important to users. just action testing
59 changes: 23 additions & 36 deletions .github/workflows/changeset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit dabc6a6

Please sign in to comment.