From aaeb14ffeebfaa33762c0bf9b41bfc28fb853349 Mon Sep 17 00:00:00 2001 From: Mike Chu Date: Mon, 25 Sep 2023 18:38:58 +0000 Subject: [PATCH 1/4] Correction to release workflow based on https://github.com/npm/cli/issues/6184 --- .github/workflows/react_release.yml | 49 +++++++++++++++-------------- 1 file changed, 26 insertions(+), 23 deletions(-) diff --git a/.github/workflows/react_release.yml b/.github/workflows/react_release.yml index d793703a..4702636e 100644 --- a/.github/workflows/react_release.yml +++ b/.github/workflows/react_release.yml @@ -1,23 +1,26 @@ -name: Publish React SDK to NPM - -on: - release: - types: [ published ] - -jobs: - publish: - name: Publish to npm - runs-on: ubuntu-latest - steps: - - name: Checkout branch - uses: actions/checkout@v3 - - name: Set up Node - uses: actions/setup-node@v3 - with: - node-version: 18 - - name: Install dependencies - run: yarn install - - name: Run npm publish command - env: - NODE_AUTH_TOKEN: ${{ secrets.PUBLISH_REACT_SDK_TO_NPM }} - run: npm publish +name: Publish React SDK to NPM + +on: + release: + types: [ published ] + +jobs: + publish: + name: Publish to npm + runs-on: ubuntu-latest + steps: + - name: Checkout branch + uses: actions/checkout@v3 + - name: Set up Node + uses: actions/setup-node@v3 + with: + node-version: 18 + registry-url: "https://registry.npmjs.org" + - name: Install dependencies + run: yarn install + - name: Run npm publish command + env: + NODE_AUTH_TOKEN: ${{ secrets.PUBLISH_REACT_SDK_TO_NPM }} + NPM_TOKEN: ${{ secrets.PUBLISH_REACT_SDK_TO_NPM }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: npm publish From c826db842ca55237df8e03ac167007aeef1d7f74 Mon Sep 17 00:00:00 2001 From: Mike Chu Date: Mon, 25 Sep 2023 18:41:53 +0000 Subject: [PATCH 2/4] Fix for EOL character --- .github/workflows/react_release.yml | 52 ++++++++++++++--------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/.github/workflows/react_release.yml b/.github/workflows/react_release.yml index 4702636e..3ce00464 100644 --- a/.github/workflows/react_release.yml +++ b/.github/workflows/react_release.yml @@ -1,26 +1,26 @@ -name: Publish React SDK to NPM - -on: - release: - types: [ published ] - -jobs: - publish: - name: Publish to npm - runs-on: ubuntu-latest - steps: - - name: Checkout branch - uses: actions/checkout@v3 - - name: Set up Node - uses: actions/setup-node@v3 - with: - node-version: 18 - registry-url: "https://registry.npmjs.org" - - name: Install dependencies - run: yarn install - - name: Run npm publish command - env: - NODE_AUTH_TOKEN: ${{ secrets.PUBLISH_REACT_SDK_TO_NPM }} - NPM_TOKEN: ${{ secrets.PUBLISH_REACT_SDK_TO_NPM }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: npm publish +name: Publish React SDK to NPM + +on: + release: + types: [ published ] + +jobs: + publish: + name: Publish to npm + runs-on: ubuntu-latest + steps: + - name: Checkout branch + uses: actions/checkout@v3 + - name: Set up Node + uses: actions/setup-node@v3 + with: + node-version: 18 + registry-url: "https://registry.npmjs.org" + - name: Install dependencies + run: yarn install + - name: Run npm publish command + env: + NODE_AUTH_TOKEN: ${{ secrets.PUBLISH_REACT_SDK_TO_NPM }} + NPM_TOKEN: ${{ secrets.PUBLISH_REACT_SDK_TO_NPM }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: npm publish From 0c5a98a1cbcafdb0d45ed5c9b6f56ec5b0b37f90 Mon Sep 17 00:00:00 2001 From: Mike Chu Date: Mon, 25 Sep 2023 18:43:40 +0000 Subject: [PATCH 3/4] Add gitattributes file for eol=lf --- .gitattributes | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..94f480de --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf \ No newline at end of file From bf9eea6d93afcf61de5d782fa0e5759ba6e220ce Mon Sep 17 00:00:00 2001 From: Mike Chu Date: Mon, 25 Sep 2023 18:44:34 +0000 Subject: [PATCH 4/4] Add extra line at EOF --- .gitattributes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitattributes b/.gitattributes index 94f480de..6313b56c 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1 @@ -* text=auto eol=lf \ No newline at end of file +* text=auto eol=lf