1- name : Manual Release
1+ name : Manual Release Test Workflow
22
33on :
44 workflow_dispatch :
@@ -25,7 +25,6 @@ permissions:
2525jobs :
2626 release :
2727 # Allow only on master, spring*, summer*, winter*;
28- if : ${{ github.repository_owner == 'salesforce' && (github.ref_name == 'master' || startsWith(github.ref_name, 'spring') || startsWith(github.ref_name, 'summer') || startsWith(github.ref_name, 'winter')) }}
2928 environment : release
3029 runs-on : ubuntu-latest
3130 steps :
@@ -64,31 +63,31 @@ jobs:
6463 git commit -am "chore: release v$RESOLVED_VERSION"
6564 git push origin HEAD
6665
67- - name : Build
68- run : yarn build
66+ # - name: Build
67+ # run: yarn build
6968
70- - name : Tag and create GitHub release
71- env :
72- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
73- run : |
74- VERSION=$(jq -r .version package.json)
75- git tag -a "v$VERSION" -m "Release v$VERSION"
76- git push origin tag "v$VERSION"
77- gh release create "v$VERSION" --title "v$VERSION" --generate-notes
69+ # - name: Tag and create GitHub release
70+ # env:
71+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
72+ # run: |
73+ # VERSION=$(jq -r .version package.json)
74+ # git tag -a "v$VERSION" -m "Release v$VERSION"
75+ # git push origin tag "v$VERSION"
76+ # gh release create "v$VERSION" --title "v$VERSION" --generate-notes
7877
79- - name : Publish to npm
80- env :
81- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
82- NPM_CONFIG_ALWAYS_AUTH : ' true'
83- run : |
84- # Force both npm and yarn to use npmjs and pick up the token
85- yarn config set registry https://registry.npmjs.org
86- npm config set registry https://registry.npmjs.org
87- printf "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}\nalways-auth=true\n" > ~/.npmrc
78+ # - name: Publish to npm
79+ # env:
80+ # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
81+ # NPM_CONFIG_ALWAYS_AUTH: 'true'
82+ # run: |
83+ # # Force both npm and yarn to use npmjs and pick up the token
84+ # yarn config set registry https://registry.npmjs.org
85+ # npm config set registry https://registry.npmjs.org
86+ # printf "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}\nalways-auth=true\n" > ~/.npmrc
8887
89- # Sanity checks
90- echo "yarn registry: $(yarn config get registry)"
91- echo "npm registry: $(npm config get registry)"
88+ # # Sanity checks
89+ # echo "yarn registry: $(yarn config get registry)"
90+ # echo "npm registry: $(npm config get registry)"
9291
93- TAG=$([ "$GITHUB_REF_NAME" = "master" ] && echo latest || echo "$GITHUB_REF_NAME")
94- yarn nx release publish --yes --tag "$TAG"
92+ # TAG=$([ "$GITHUB_REF_NAME" = "master" ] && echo latest || echo "$GITHUB_REF_NAME")
93+ # yarn nx release publish --yes --tag "$TAG"
0 commit comments