Skip to content

Commit ddd7cfb

Browse files
committed
Revert changes to branch protections
1 parent a062cb2 commit ddd7cfb

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,9 @@
22
# yamllint disable rule:line-length
33
name: "Publish to NPM"
44
on: # 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

139
jobs:
1410
publish:
@@ -20,7 +16,6 @@ jobs:
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: |
@@ -29,7 +24,7 @@ jobs:
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 }}
@@ -60,7 +55,7 @@ jobs:
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:

0 commit comments

Comments
 (0)