@@ -61,17 +61,17 @@ jobs:
6161uses :actions/setup-node@v3
6262with :
6363node-version :${{ matrix.node-version }}
64- cache :' yarn '
64+ cache :' npm '
6565 -name :Log environment setup
6666run :|
6767 node -v
68- yarn -v
68+ npm -v
6969 -name :Install dependencies
70- run :yarn install --ignore-engines
70+ run :npm install
7171 -name :Build templates
72- run :yarn run build:templates
72+ run :npm run build:templates
7373 -name :Build library
74- run :yarn run build
74+ run :npm run build
7575
7676publish :
7777runs-on :ubuntu-latest
@@ -97,12 +97,12 @@ jobs:
9797repo-token :" ${{ secrets.GITHUB_TOKEN }}"
9898tag :" ${{ env.version }}"
9999 -name :Install dependencies
100- run :yarn
100+ run :npm install
101101 -uses :actions/setup-node@v3
102102with :
103103registry-url :' https://registry.npmjs.org'
104104node-version :' 18.x'
105- -name :ConfigureYarn version
105+ -name :ConfigureNPM version
106106env :
107107NODE_AUTH_TOKEN :${{ secrets.NPM_TOKEN }}
108108run :|
@@ -112,19 +112,17 @@ jobs:
112112 echo "registry=https://registry.npmjs.org/" >> .npmrc
113113 echo "access=public" >> .npmrc
114114 echo "save-exact=true" >> .npmrc
115- yarn config set version-tag-prefix ""
116- yarn config set version-git-message "Release version %s"
117115 -name :Version package
118116run :|
119117 # Update version in packages to publish
120- yarn version--non-interactive --new-version $(cat .version)
118+ npm version $(cat .version) -m "Release version %s"
121119 -name :Publish to NPM
122- run :yarn publish --tag $(cat .tag) --non-interactive --new-version $(cat .version )
120+ run :npm publish --tag $(cat .tag)
123121 -uses :actions/setup-node@v3
124122with :
125123node-version :' 18.x'
126124registry-url :' https://npm.pkg.github.com'
127- -name :ConfigureYarn version
125+ -name :ConfigureNPM version
128126env :
129127NODE_AUTH_TOKEN :${{ secrets.GITHUB_TOKEN }}
130128run :|
@@ -134,18 +132,12 @@ jobs:
134132 echo "@rtfpessoa:registry=https://npm.pkg.github.com/" >> .npmrc
135133 echo "access=public" >> .npmrc
136134 echo "save-exact=true" >> .npmrc
137- yarn config set version-tag-prefix ""
138- yarn config set version-git-message "Release version %s"
139- -name :Version package
140- run :|
141- # Update version in packages to publish
142- yarn version --non-interactive --new-version $(cat .version)
143135 -name :Publish to GPR
144136run :|
145137 # HACK: Override npm package name to be able to publish in GitHub
146138 sed -i 's/^ "name":.*/ "name": "@rtfpessoa\/diff2html",/g' package.json
147139 echo "Going to publish version $(cat .version) to GitHub"
148- yarn publish --tag $(cat .tag) --non-interactive --new-version $(cat .version )
140+ npm publish --tag $(cat .tag)
149141 # HACK: Restore npm package name
150142 sed -i 's/^ "name":.*/ "name": "diff2html",/g' package.json
151143 -name :Upload docs