Remove setup action
DELETE
.github/actions/setup/action.yml
-name: Setup
-runs:
- using: "composite"
- steps:
- - uses: actions/setup-node@v1
- with:
- node-version: '14.16.0'
- registry-url: 'https://registry.npmjs.org'

MODIFY
.github/workflows/autopublish.yml
.github/workflows/autopublish.yml
@@ -51,7 +51,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- - uses: ./.github/actions/setup
+ - uses: actions/setup-node@v1
+ with:
+ node-version: '14.16.0'
- name: Set tag if prerelease
if: needs.check.outputs.prerelease == 'true'
@@ -83,9 +85,34 @@ jobs:
name: Publish Release
needs: build
runs-on: ubuntu-latest
- run:
+ steps:
- uses: actions/checkout@v2
- - uses: ./.github/actions/setup
+
+ - uses: actions/setup-node@v1
+ with:
+ node-version: '14.16.0'
+ registry-url: 'https://registry.npmjs.org'
- run:
- echo "Publishing ${{ env.version }} ${{ env.tag }}"
+
+ - uses: actions/download-artifact@v2
+ with:
+ name: dist.tar.gz
+
+ - name: npm publish
+ run: npm publish dist.tar.gz --tag ${{ env.tag }}
+
+ - name: Create GitHub release and tag
+ uses: softprops/action-gh-release@v1
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ name: v${{ env.version }}
+ tag_name: v${{ env.version }}
+ draft: false
+ prerelease: ${{ env.tag !== 'latest' }}
+ files: dist.tar.gz
+ fail_on_unmatched_files: true
+
+ # TODO update latest branch if latest

MODIFY
.github/workflows/ci.yml
.github/workflows/ci.yml
@@ -14,7 +14,9 @@ jobs:
steps:
- uses: actions/checkout@v2
- - uses: ./.github/actions/setup
+ - uses: actions/setup-node@v1
+ with:
+ node-version: '14.16.0'
- name: rome ci
run: ./rome ci
@@ -28,7 +30,9 @@ jobs:
steps:
- uses: actions/checkout@v2
- - uses: ./.github/actions/setup
+ - uses: actions/setup-node@v1
+ with:
+ node-version: '14.16.0'
- name: rome test
run: ./rome test --freeze-snapshots
@@ -38,7 +42,9 @@ jobs:
steps:
- uses: actions/checkout@v2
- - uses: ./.github/actions/setup
+ - uses: actions/setup-node@v1
+ with:
+ node-version: '14.16.0'
- name: Run TypeScript
run: node ./node_modules/.bin/tsc --noEmit
@@ -48,6 +54,8 @@ jobs:
steps:
- uses: actions/checkout@v2
- - uses: ./.github/actions/setup
+ - uses: actions/setup-node@v1
+ with:
+ node-version: '14.16.0'
- name: Check if generated files need to be updated
run: ./rome run scripts/generate-all-files

Remove setup action