Skip to content

Commit 8e23648

Browse files
committed
enabled npm deployment
1 parent 96ebc7d commit 8e23648

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

.github/workflows/test-and-release.yml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -80,33 +80,33 @@ jobs:
8080
# Then uncomment the following block:
8181

8282
# # Deploys the final package to NPM
83-
# deploy:
84-
# needs: [adapter-tests]
85-
#
86-
# # Trigger this step only when a commit on master is tagged with a version number
87-
# if: |
88-
# contains(github.event.head_commit.message, '[skip ci]') == false &&
89-
# github.event_name == 'push' &&
90-
# github.event.base_ref == 'refs/heads/master' &&
91-
# startsWith(github.ref, 'refs/tags/v')
92-
#
93-
# runs-on: ubuntu-latest
94-
# strategy:
95-
# matrix:
96-
# node-version: [12.x]
97-
#
98-
# steps:
99-
# - uses: actions/checkout@v1
100-
# - name: Use Node.js ${{ matrix.node-version }}
101-
# uses: actions/setup-node@v1
102-
# with:
103-
# node-version: ${{ matrix.node-version }}
104-
#
105-
# - name: Publish package to npm
106-
# run: |
107-
# npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
108-
# npm whoami
109-
# npm publish
83+
deploy:
84+
needs: [adapter-tests]
85+
86+
# Trigger this step only when a commit on master is tagged with a version number
87+
if: |
88+
contains(github.event.head_commit.message, '[skip ci]') == false &&
89+
github.event_name == 'push' &&
90+
github.event.base_ref == 'refs/heads/master' &&
91+
startsWith(github.ref, 'refs/tags/v')
92+
93+
runs-on: ubuntu-latest
94+
strategy:
95+
matrix:
96+
node-version: [18.x]
97+
98+
steps:
99+
- uses: actions/checkout@v1
100+
- name: Use Node.js ${{ matrix.node-version }}
101+
uses: actions/setup-node@v1
102+
with:
103+
node-version: ${{ matrix.node-version }}
104+
105+
- name: Publish package to npm
106+
run: |
107+
npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
108+
npm whoami
109+
npm publish
110110
111111
# Dummy job for skipped builds - without this, github reports the build as failed
112112
skip-ci:

0 commit comments

Comments
 (0)