Commit 69e8627 1 parent 240ff79 commit 69e8627 Copy full SHA for 69e8627
File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 31
31
echo PKG_BASENAME="$(basename $(jq -r .name < package.json))" >> $GITHUB_ENV
32
32
- name : Ensure the branch is protected
33
33
run : |
34
- if [[ "${{ github.ref_protected }}" == "false" ]]; then
34
+ if [[ "${{ github.ref_protected }}" = "false" ]]; then
35
35
echo "::error::The branch ${{ github.ref }} is not protected"
36
36
exit 1
37
37
fi
54
54
cache : yarn
55
55
node-version : ' 16'
56
56
registry-url : https://npm.pkg.github.com
57
- - run : yarn install --frozen-lockfile
57
+ - name : install dependencies
58
+ run : yarn install --frozen-lockfile
58
59
- name : Publish to GitHub Packages
59
60
run : npm publish --provenance
60
61
env :
Original file line number Diff line number Diff line change 29
29
run : yarn lint
30
30
- name : Set common env vars for npm publish
31
31
run : |
32
- echo "SHORTSHA=$(echo $GITHUB_SHA | cut -c1-7 )" >> $GITHUB_ENV
32
+ echo "SHORTSHA=$(git rev-parse --short $GITHUB_SHA )" >> $GITHUB_ENV
33
33
echo "PKG_VERSION=$(jq -r .version < package.json)" >> $GITHUB_ENV
34
34
- name : Set version for work in progress
35
35
run : yarn version --no-git-tag-version --new-version "0.0.0-sha.${SHORTSHA}"
You can’t perform that action at this time.
0 commit comments