Skip to content

Commit

Permalink
Merge pull request #15 from aligent/feature/TCS-1_yarn-pipelines
Browse files Browse the repository at this point in the history
Feature/tcs 1 yarn pipelines
  • Loading branch information
styler3 authored Dec 5, 2024
2 parents 9ddea14 + 46a4696 commit d855301
Show file tree
Hide file tree
Showing 8 changed files with 3,470 additions and 2,484 deletions.
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

0 comments on commit d855301

Please sign in to comment.