File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22# yamllint disable rule:line-length
33name : " Publish to NPM"
44on : # yamllint disable-line rule:truthy
5- # release:
6- # types:
7- # - "published"
8- # NOTE: this is temporary until I get the release process ironed out.
9- pull_request :
10- branches :
11- - " *"
5+ release :
6+ types :
7+ - " published"
128
139jobs :
1410 publish :
2016 with :
2117 node-version : 18
2218 - uses : bahmutov/npm-install@v1
23- - run : yarn test
2419 # Set the version in package.json to match the tag
2520 - name : Write release version
2621 run : |
2924 echo "VERSION=$VERSION" >> $GITHUB_ENV
3025 # NOTE: the flag is necessary because otherwise `npm version <version>` attempts to
3126 # cut a git tag with that version, which fails because the git user isn't configured.
32- - run : " npm version 1.0.2 --no-git-tag-version"
27+ - run : " npm version ${VERSION} --no-git-tag-version"
3328 - uses : JS-DevTools/npm-publish@v3
3429 with :
3530 token : ${{ secrets.NPM_TOKEN }}
6055 echo "VERSION=$VERSION" >> $GITHUB_ENV
6156 # NOTE: the flag is necessary because otherwise `npm version <version>` attempts to
6257 # cut a git tag with that version, which fails because the git user isn't configured.
63- - run : " npm version 1.0.2 --no-git-tag-version"
58+ - run : " npm version ${VERSION} --no-git-tag-version"
6459 working-directory : ./js-dist
6560 - uses : JS-DevTools/npm-publish@v3
6661 with :
You can’t perform that action at this time.
0 commit comments