Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/tcs 1 yarn pipelines #15

Merged
merged 7 commits into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,20 @@ jobs:
with:
ref: ${{ github.event.release.target_commitish }}

- uses: pnpm/[email protected]
- name: Enable Corepack
run: corepack enable

- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'pnpm'
cache: 'yarn'
registry-url: https://registry.npmjs.org/

- name: Install
run: pnpm install
run: yarn install

- name: Build
run: pnpm build
run: yarn build

- name: Preparing environment for release
run: |
Expand All @@ -39,9 +41,10 @@ jobs:
run: |
git config --global user.name "Automated NPM Release"
git config --global user.email "[email protected]"
pnpm version $VERSION --allow-same-version
# yarn version only works if there is already a version entry in package.json
npm version $VERSION --allow-same-version
echo "Publishing $PACKAGE @ $VERSION"
pnpm config set registry https://registry.npmjs.org/
pnpm publish .
yarn config set registry https://registry.npmjs.org/
yarn npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
10 changes: 6 additions & 4 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,16 @@ jobs:
- name: Fetch target
run: git fetch origin ${{ github.event.pull_request.base.ref }}

- uses: pnpm/[email protected]
- name: Enable Corepack
run: corepack enable

- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'pnpm'
cache: 'yarn'

- name: Install
run: pnpm install
run: yarn install

- name: Run Tests
run: pnpm test
run: yarn test
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.vscode
node_modules
.pnpm-store
.yarn
dist
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.yarn
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@
"rollup": "^4.28.0",
"typescript": "^5.7.2"
},
"packageManager": "[email protected]+sha512.22721b3a11f81661ae1ec68ce1a7b879425a1ca5b991c975b074ac220b187ce56c708fe5db69f4c962c989452eee76c82877f4ee80f474cebd61ee13461b6228"
"packageManager": "[email protected]+sha512.341db9396b6e289fecc30cd7ab3af65060e05ebff4b3b47547b278b9e67b08f485ecd8c79006b405446262142c7a38154445ef7f17c1d5d1de7d90bf9ce7054d"
}
Loading
Loading