Skip to content

Commit

Permalink
ci: update release action (#71)
Browse files Browse the repository at this point in the history
Signed-off-by: Tomas Dvorak <toomas2d@gmail.com>
  • Loading branch information
Tomas2D authored Jan 11, 2024
1 parent 36d535b commit 49dd37d
Show file tree
Hide file tree
Showing 4 changed files with 558 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ jobs:
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: |
yarn plugin import version
yarn install --frozen-lockfile
- run: yarn install --immutable
- name: Bump package.json version
run: |
git config --global user.email "bot@github.com"
git config --global user.name "Github Action"
git tag --delete ${{github.ref_name}}
git push --delete origin ${{github.ref_name}}
git checkout -b tmp
yarn version --new-version `echo -n ${{github.ref_name}} | tr -d "v"` --no-commit-hooks
yarn version --immediate `echo -n ${{github.ref_name}} | tr -d "v"`
git add .
git commit -m "${{github.ref_name}}" --no-verify
git push origin tmp:main
git push origin ${{github.ref_name}}
- run: yarn npm publish --access public
Expand Down
550 changes: 550 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-version.cjs

Large diffs are not rendered by default.

Empty file added .yarn/versions/6e9a633f.yml
Empty file.
4 changes: 4 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
nodeLinker: node-modules

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-version.cjs
spec: "@yarnpkg/plugin-version"

yarnPath: .yarn/releases/yarn-3.5.0.cjs

0 comments on commit 49dd37d

Please sign in to comment.